Skip to content

Commit

Permalink
test cli and lib msrv separately (#2625)
Browse files Browse the repository at this point in the history
* ci: test lib too

* ci: a more accurate title

* ci: use a maintained Action

* ci: test cli msrv
  • Loading branch information
tshepang committed Sep 6, 2023
1 parent b52377a commit 073fa62
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/bindgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,25 @@ jobs:
steps:
- uses: actions/checkout@v3

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

- name: Build with msrv
run: cargo +1.60.0 build --lib
- name: Test lib with msrv
run: cargo +1.60.0 test --package bindgen

- name: Install msrv for cli
uses: dtolnay/rust-toolchain@master
with:
# MSRV below is documented in Cargo.toml and README.md, please update those if you
# change this.
toolchain: 1.64.0

- name: Test cli with msrv
run: cargo +1.64.0 build --package bindgen-cli

minimal:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 073fa62

Please sign in to comment.