Skip to content

Commit

Permalink
macos-12 を落としてアップロード先を PyPI に向ける
Browse files Browse the repository at this point in the history
  • Loading branch information
melpon committed Jun 17, 2023
1 parent d189dda commit dcee505
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 40 deletions.
51 changes: 12 additions & 39 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ jobs:
- name: ubuntu-20.04_armv8_jetson
runs_on: ubuntu-20.04
os: ubuntu
- name: macos-12_arm64
runs_on: macos-12
os: macos
python_host_platform: "macosx-12.0-arm64"
archflags: "-arch arm64"
- name: macos-13_arm64
runs_on: macos-13
os: macos
Expand Down Expand Up @@ -144,7 +139,6 @@ jobs:
platform:
- name: ubuntu-22.04_x86_64
- name: ubuntu-20.04_armv8_jetson
- name: macos-12_arm64
- name: macos-13_arm64
- name: windows-2019
python_version:
Expand All @@ -161,7 +155,6 @@ jobs:
python_version: "3.11"
runs-on: ubuntu-latest
timeout-minutes: 60
# テスト用
steps:
- uses: actions/download-artifact@v3
with:
Expand All @@ -174,37 +167,17 @@ jobs:
# matrix の中で1個だけソースディストリビューション用のデータを残しておく
- run: mv *.tar.gz dist/
if: ${{ matrix.platform.name == 'macos-13_arm64' && matrix.python_version == '3.8' }}
- name: Publish package to TestPyPI

# テスト用
# - name: Publish package to TestPyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/
# verbose: true

# 本番用
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
verbose: true
# 本番用
# steps:
# - uses: actions/download-artifact@v3
# with:
# name: ${{ matrix.platform.name }}_python-${{ matrix.python_version }}
# path: dist
# - run: |
# if [ -e dist/*.tar.gz ]; then
# mv dist/*.tar.gz ./
# fi
# # matrix の中で1個だけソースディストリビューション用のデータを残しておく
# - run: mv *.tar.gz dist/
# if: ${{ matrix.platform.name == 'macos-13_arm64' && matrix.python_version == '3.8' }}
# - name: Publish package to TestPyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}

# build_macos_arm64_job:
# runs-on: [self-hosted, macos, arm64]
# timeout-minutes: 10
# steps:
# - uses: actions/checkout@v3
# - name: Build
# run: |
# python3 -m venv .venv
# source .venv/bin/activate
# pip3 install -v .
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dev-dependencies = [
[project]
name = "sora_sdk"
authors = [{ name = "Shiguredo Inc.", email = "contact+pypi@shiguredo.jp" }]
version = "2023.1.0.dev5"
version = "2023.1.0.dev6"
description = "WebRTC SFU Sora Python SDK"
readme = "README.md"
license = { file = "LICENSE" }
Expand Down

0 comments on commit dcee505

Please sign in to comment.