-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
- 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 | ||
|