diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2bd24bee..1d0dfe3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,13 +23,13 @@ on: branches: - main jobs: -# build_dist: -# runs-on: ${{ matrix.os_dist.os }} -# strategy: -# fail-fast: false -# matrix: -# os_dist: [ -# {os: ubuntu-latest, dist: cp36-manylinux_x86_64}, + build_dist: + runs-on: ${{ matrix.os_dist.os }} + strategy: + fail-fast: false + matrix: + os_dist: [ + {os: ubuntu-latest, dist: cp36-manylinux_x86_64}, # {os: ubuntu-latest, dist: cp37-manylinux_x86_64}, # {os: ubuntu-latest, dist: cp38-manylinux_x86_64}, # {os: ubuntu-latest, dist: cp39-manylinux_x86_64}, @@ -143,35 +143,23 @@ jobs: # # CCompiler_spawn() got an unexpected keyword argument 'env' # # # # {os: windows-2019, dist: cp310-win32}, -# ] -# env: -# CIBW_BUILD: "${{ matrix.os_dist.dist }}" -# CIBW_ARCHS_MACOS: "${{ matrix.os_dist.macosarch }}" -# CIBW_TEST_REQUIRES: cirq-core pytest -# CIBW_TEST_COMMAND: pytest {project}/src {project}/glue/cirq && stim help -# steps: -# - uses: actions/checkout@v3 -# - uses: actions/setup-python@v3 -# - run: python dev/overwrite_dev_versions_with_date.py -# - run: mkdir -p output/stim -# - run: mkdir -p output/stimcirq -# - run: mkdir -p output/sinter -# - run: python -m pip install pybind11~=2.11.1 cibuildwheel~=2.16.2 setuptools wheel -# - run: python -m cibuildwheel --print-build-identifiers -# - run: python -m cibuildwheel --output-dir output/stim -# - run: python setup.py sdist -# - run: cd glue/cirq && python setup.py sdist -# - run: cd glue/sample && python setup.py sdist -# - run: mv dist/* output/stim -# - run: mv glue/cirq/dist/* output/stimcirq -# - run: mv glue/sample/dist/* output/sinter -# - uses: actions/upload-artifact@v4.4.0 -# with: -# name: "dist-${{ matrix.os_dist.os }}-${{ matrix.os_dist.dist }}-${{ matrix.os_dist.macosarch }}" -# path: | -# ./output/stimcirq/*.tar.gz -# ./output/sinter/*.tar.gz -# ./output/stim/* + ] + env: + CIBW_BUILD: "${{ matrix.os_dist.dist }}" + CIBW_ARCHS_MACOS: "${{ matrix.os_dist.macosarch }}" + CIBW_TEST_REQUIRES: cirq-core pytest + CIBW_TEST_COMMAND: pytest {project}/src {project}/glue/cirq && stim help + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + - run: python dev/overwrite_dev_versions_with_date.py + - run: python -m pip install pybind11~=2.11.1 cibuildwheel~=2.16.2 setuptools wheel + - run: python -m cibuildwheel --print-build-identifiers + - run: python -m cibuildwheel --output-dir output/stim + - uses: actions/upload-artifact@v4.4.0 + with: + name: "dist-${{ matrix.os_dist.os }}-${{ matrix.os_dist.dist }}-${{ matrix.os_dist.macosarch }}" + path: dist/* build_sdist: runs-on: ubuntu-latest steps: @@ -185,15 +173,15 @@ jobs: - run: cd glue/sample && python setup.py sdist - uses: actions/upload-artifact@v4.4.0 with: - name: "dist-src-sinter" + name: "dist-sdist-sinter" path: glue/sample/dist/*.tar.gz - uses: actions/upload-artifact@v4.4.0 with: - name: "dist-src-stimcirq" + name: "dist-sdist-stimcirq" path: glue/cirq/dist/*.tar.gz - uses: actions/upload-artifact@v4.4.0 with: - name: "dist-src-stim" + name: "dist-sdist-stim" path: dist/*.tar.gz # check_sdist_installs: # runs-on: ubuntu-latest