From 67b3f131e115226fdab8a798dffa26e4743f6b31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Borgna?= <121866228+aborgna-q@users.noreply.github.com> Date: Mon, 5 Aug 2024 10:03:16 +0100 Subject: [PATCH] ci: Fix pure wheels if check (#525) Fix #523 not actually running the pure wheel building steps... Now that that got merged to main I was able to _workflow dispatch_ it to test, and it seems I used the wrong syntax for the ifs. It works now: https://github.com/CQCL/tket2/actions/runs/10214055732/job/28260696536 --- .github/workflows/python-pure-wheels.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-pure-wheels.yml b/.github/workflows/python-pure-wheels.yml index e4c1df81..8ff35efc 100644 --- a/.github/workflows/python-pure-wheels.yml +++ b/.github/workflows/python-pure-wheels.yml @@ -31,34 +31,35 @@ jobs: # # Skip the workflow when triggered by a release event for any other package. - name: Check tag + id: check-tag run: | echo "run=$SHOULD_RUN" >> $GITHUB_OUTPUT env: SHOULD_RUN: ${{ github.event_name != 'release' || ( github.ref_type == 'tag' && startsWith(github.ref, format('refs/tags/{0}-v', matrix.target.name)) ) }} - uses: actions/checkout@v4 - if: ${{ github.job.steps.check-tag.outputs.run == 'true' }} + if: ${{ steps.check-tag.outputs.run == 'true' }} - name: Run sccache-cache - if: ${{ github.job.steps.check-tag.outputs.run == 'true' }} + if: ${{ steps.check-tag.outputs.run == 'true' }} uses: mozilla-actions/sccache-action@v0.0.5 - name: Install poetry - if: ${{ github.job.steps.check-tag.outputs.run == 'true' }} + if: ${{ steps.check-tag.outputs.run == 'true' }} run: pipx install poetry - name: Set up Python '3.10' - if: ${{ github.job.steps.check-tag.outputs.run == 'true' }} + if: ${{ steps.check-tag.outputs.run == 'true' }} uses: actions/setup-python@v5 with: python-version: '3.10' cache: "poetry" - name: Build sdist and wheels - if: ${{ github.job.steps.check-tag.outputs.run == 'true' }} + if: ${{ steps.check-tag.outputs.run == 'true' }} run: | cd ${{ matrix.target.name }} poetry build -o ../dist - name: Upload the built packages as artifacts - if: ${{ github.job.steps.check-tag.outputs.run == 'true' }} + if: ${{ steps.check-tag.outputs.run == 'true' }} uses: actions/upload-artifact@v4 with: name: build-${{ matrix.target.name }}-sdist