Skip to content

Commit

Permalink
ci: Try to fix github actions.
Browse files Browse the repository at this point in the history
Fixes #836
  • Loading branch information
emilio committed May 29, 2023
1 parent 2ac4677 commit ea6e886
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/cbindgen.yml
Expand Up @@ -17,9 +17,10 @@ jobs:
- uses: actions/checkout@v3

- name: Install stable
uses: dtolnay/rust-toolchain@stable
uses: actions-rs/toolchain@v1
with:
components: "clippy, rustfmt"
toolchain: stable
components: clippy, rustfmt

- name: Run rustfmt
run: |
Expand All @@ -31,11 +32,14 @@ jobs:
- name: Install minimum supported Rust version
id: msrv
uses: dtolnay/rust-toolchain@1.54
uses: actions-rs/toolchain@v1
with:
toolchain: 1.57
override: true

- name: Build with minimum supported Rust version
run: |
cargo +${{steps.msrv.outputs.name}} test nonexistent-test --verbose
cargo test nonexistent-test --verbose
build:

Expand All @@ -44,8 +48,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install stable Rust
uses: dtolnay/rust-toolchain@stable
- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Install Python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -73,7 +79,9 @@ jobs:
(cd target/package/cbindgen-$(cargo run -- --version | cut -d ' ' -f 2) && cargo test --verbose)
- name: Install nightly Rust
uses: dtolnay/rust-toolchain@nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly

- name: Test
env:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Expand Up @@ -15,7 +15,9 @@ jobs:
- uses: actions/checkout@v3

- name: Install stable
uses: dtolnay/rust-toolchain@stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Build cbindgen
run: |
Expand Down
4 changes: 4 additions & 0 deletions CHANGES
@@ -1,3 +1,7 @@
## Unreleased

* Update MSRV to 1.57

## 0.24.5

* Don't enforce tempfile version.
Expand Down

0 comments on commit ea6e886

Please sign in to comment.