Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github: only run verified build when program cargo changes #1123

Merged
merged 13 commits into from
Jul 8, 2024
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
Loading