Skip to content

Commit

Permalink
ci: use regenerate feature when running test
Browse files Browse the repository at this point in the history
  • Loading branch information
oberrich authored Jan 2, 2025
1 parent a9546c2 commit 285a742
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ jobs:
# Move the generated file to the repository directory
cp "$GENERATED_BINDING" "src/ffi/${ARCH}_bindgen.rs"
echo "Moved $GENERATED_BINDING to src/ffi/${ARCH}_bindgen.rs"
- name: Run tests
run: cargo test -v -F regenerate --target ${{ matrix.target }}
- name: Upload generated file as artifact
uses: actions/upload-artifact@v4
with:
Expand All @@ -66,8 +69,6 @@ jobs:
pattern: "*bindgen.rs"
path: src/ffi
merge-multiple: true
- name: Run tests
run: cargo test --verbose
- name: Configure Git
run: |
git config user.name "GitHub Actions"
Expand Down

0 comments on commit 285a742

Please sign in to comment.