Skip to content

Commit

Permalink
fix(rs-semver-checks): cd into checked out repo when cargo checki…
Browse files Browse the repository at this point in the history
…ng (#31)

In #30 I forgot we are checking out the repo to a different directory,
so we need to `cd` before running anything -.-'

See failing run due to missing `Cargo.toml`:
https://github.com/CQCL/hugr/actions/runs/12118534964/job/33783222406?pr=1723#step:9:15
  • Loading branch information
aborgna-q authored Dec 2, 2024
1 parent 3ce20b7 commit 7d52264
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/rs-semver-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ jobs:
# Abort if the crate has build errors.
- name: Check for build errors
id: build
run: cargo check --all-targets
run: |
cd PR_BRANCH
cargo check --all-targets
# Run cargo-semver-checks against the PR's target branch.
- name: Check for public API changes
Expand Down

0 comments on commit 7d52264

Please sign in to comment.