diff --git a/.github/workflows/_build.yml b/.github/workflows/_build.yml index daf3a87..de63043 100644 --- a/.github/workflows/_build.yml +++ b/.github/workflows/_build.yml @@ -14,6 +14,11 @@ on: type: string required: false default: ubuntu-latest + upload_artifact: + description: Upload the built artifact. + type: string + required: false + default: 'false' outputs: artifact_name: description: The artifact name. @@ -35,6 +40,7 @@ jobs: run: make build - name: Upload artifact uses: actions/upload-artifact@v4 + if: inputs.upload_artifact == 'true' with: name: build-${{ github.sha }} if-no-files-found: error diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 6cee1a7..0b2db09 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -65,6 +65,7 @@ jobs: with: python_version: ${{ matrix.python }} runs_on: ${{ matrix.os }} + upload_artifact: ${{ matrix.python == '3.11' && matrix.os == 'ubuntu-latest' }} strategy: fail-fast: false matrix: