Skip to content

Commit 073fa62

Browse files
authored
test cli and lib msrv separately (#2625)
* ci: test lib too * ci: a more accurate title * ci: use a maintained Action * ci: test cli msrv
1 parent b52377a commit 073fa62

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/bindgen.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,25 @@ jobs:
4242
steps:
4343
- uses: actions/checkout@v3
4444

45-
- name: Install msrv
46-
uses: actions-rs/toolchain@v1
45+
- name: Install msrv for lib
46+
uses: dtolnay/rust-toolchain@master
4747
with:
48-
profile: minimal
4948
# MSRV below is documented in Cargo.toml and README.md, please update those if you
5049
# change this.
5150
toolchain: 1.60.0
52-
override: true
5351

54-
- name: Build with msrv
55-
run: cargo +1.60.0 build --lib
52+
- name: Test lib with msrv
53+
run: cargo +1.60.0 test --package bindgen
54+
55+
- name: Install msrv for cli
56+
uses: dtolnay/rust-toolchain@master
57+
with:
58+
# MSRV below is documented in Cargo.toml and README.md, please update those if you
59+
# change this.
60+
toolchain: 1.64.0
61+
62+
- name: Test cli with msrv
63+
run: cargo +1.64.0 build --package bindgen-cli
5664

5765
minimal:
5866
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)