Skip to content

Commit

Permalink
.github: only run verified build when program cargo changes (#1123)
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Jul 8, 2024
1 parent 0e33784 commit a074ac4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,28 @@ jobs:
GH_PAT: ${{ secrets.GH_PAT }}
VERSION: ${{ needs.release.outputs.version }}
working-directory: ./sdk
check-for-program-version-changes:
runs-on: ubuntu-latest
# Set job outputs to values from filter step
outputs:
program: ${{ steps.filter.outputs.program }}
steps:
# For pull requests it's not necessary to checkout the code
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
program:
- 'programs/drift/Cargo.toml'
verified-build:
name: Build Verifiable Artifact
runs-on: ubicloud
needs:
[
check-for-program-version-changes,
]
if: ${{ needs.check-for-program-version-changes.outputs.program == 'true' }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down

0 comments on commit a074ac4

Please sign in to comment.