Skip to content

Commit

Permalink
github/workflows: Initialize bindings.rs for nightly tests
Browse files Browse the repository at this point in the history
The file libmstpm/src/bindings.rs is auto-generated during make, however
the github CI is not building the code for the nightly tests.

This patch initializes the bindings.rs before the cargo-fmt workflow so
that it does not complain that bindings.rs does not exist.

Signed-off-by: Claudio Carvalho <[email protected]>
  • Loading branch information
cclaudio committed Mar 28, 2024
1 parent ee9c188 commit 9ba6a6d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ jobs:
override: true
components: rustfmt

# The bindings.rs is auto-generated during make, but we are not
# building the code with nightly. So we initialize bindings.rs here
# for cargo-fmt in the next workflow, otherwise it will fail reporting
# that bindings.rs does not exist.
- name: Touch libmstpm bindings
run: echo "" > libmstpm/src/bindings.rs

- name: Format doctests
uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit 9ba6a6d

Please sign in to comment.