Skip to content

Commit

Permalink
chore: Comment out unnecessary code in release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cauliyang committed Oct 30, 2023
1 parent a49bee5 commit 79e297e
Showing 1 changed file with 47 additions and 43 deletions.
90 changes: 47 additions & 43 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,65 +65,66 @@ jobs:
outputs:
tag: ${{steps.check-version.outputs.tag}}

build_wheels_linux:
name: "${{ matrix.os }} ${{ matrix.cibw_archs }} ${{ matrix.cibw_build }}"
runs-on: ${{ matrix.os }}
needs: ["release"]
if: needs.release.outputs.tag
# build_wheels_linux:
# name: "${{ matrix.os }} ${{ matrix.cibw_archs }} ${{ matrix.cibw_build }}"
# runs-on: ${{ matrix.os }}
# needs: ["release"]
# if: needs.release.outputs.tag

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
cibw_build: ["cp39-*", "cp310-*", "cp311-*"]
cibw_archs: ["x86_64"]
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest]
# cibw_build: ["cp39-*", "cp310-*", "cp311-*"]
# cibw_archs: ["x86_64"]

steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
# steps:
# - name: Check out repository
# uses: actions/checkout@v4
# with:
# fetch-depth: 0

- name: Set up QEMU
if: matrix.cibw_archs != 'x86_64'
uses: docker/setup-qemu-action@v3
with:
platforms: all
# - name: Set up QEMU
# if: matrix.cibw_archs != 'x86_64'
# uses: docker/setup-qemu-action@v3
# with:
# platforms: all

- name: Set up python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
# - name: Set up python 3.10
# uses: actions/setup-python@v4
# with:
# python-version: "3.10"

- name: Install poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: false
virtualenvs-in-project: false
# - name: Install poetry
# uses: snok/install-poetry@v1
# with:
# virtualenvs-create: false
# virtualenvs-in-project: false

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_ARCHS: ${{ matrix.cibw_archs }}
CIBW_BUILD: ${{ matrix.cibw_build }}
CIBW_SKIP: "*musllinux*"
# - name: Build wheels
# uses: pypa/[email protected]
# env:
# CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
# CIBW_ARCHS: ${{ matrix.cibw_archs }}
# CIBW_BUILD: ${{ matrix.cibw_build }}
# CIBW_SKIP: "*musllinux*"

- uses: actions/upload-artifact@v3
with:
path: wheelhouse/*.whl
# - uses: actions/upload-artifact@v3
# with:
# path: wheelhouse/*.whl

build_wheels_macos:
name: "${{ matrix.os }} ${{ matrix.cibw_archs }} ${{ matrix.cibw_build }}"
runs-on: ${{ matrix.os }}
needs: ["release"]
if: needs.release.outputs.tag
# if: needs.release.outputs.tag

strategy:
fail-fast: false
matrix:
os: [macos-latest]
cibw_build: ["cp39-*", "cp310-*", "cp311-*"]
# cibw_build: ["cp39-*", "cp310-*", "cp311-*"]
cibw_build: ["cp39-*", "cp-38-*"]
cibw_archs: ["x86_64", "arm64"]
env:
SYSTEM_VERSION_COMPAT: 0 # https://github.com/actions/setup-python/issues/469#issuecomment-1192522949
Expand All @@ -144,8 +145,11 @@ jobs:
virtualenvs-create: false
virtualenvs-in-project: false

- name: Install cibuildwheel
run: python -m pip install cibuildwheel

- name: Build wheels
uses: pypa/cibuildwheel@v2.16.2
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: ${{ matrix.cibw_build }}
CIBW_ARCHS_MACOS: ${{ matrix.cibw_archs }}
Expand Down

0 comments on commit 79e297e

Please sign in to comment.