From 79e297ebb4371a42f72f3f45a032d2f3a7b35a70 Mon Sep 17 00:00:00 2001 From: Yangyang Li Date: Mon, 30 Oct 2023 12:53:21 -0500 Subject: [PATCH] chore: Comment out unnecessary code in release.yml --- .github/workflows/release.yml | 90 ++++++++++++++++++----------------- 1 file changed, 47 insertions(+), 43 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9fd7498d..68d2f1d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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/cibuildwheel@v2.16.2 - 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/cibuildwheel@v2.16.2 + # 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 @@ -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 }}