Skip to content

Commit cb25dcc

Browse files
committed
Add a CI test that the crate builds on stable
Currently everything we have runs with nightly Rust. Add a stable test to make sure we don't accidentally make use of behavior that isn't yet stable without gating it.
1 parent 3b8a7de commit cb25dcc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ jobs:
3535
- run: cargo generate-lockfile
3636
- run: ./ci/run-docker.sh ${{ matrix.target }}
3737

38+
stable:
39+
name: Build succeeds on stable
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@master
43+
- name: Install Rust
44+
run: rustup update stable && rustup default stable
45+
- run: cargo build -p libm
46+
47+
3848
rustfmt:
3949
name: Rustfmt
4050
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)