Skip to content

Commit

Permalink
Adds build-stable and build-nightly (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbis9051 authored Jul 25, 2022
1 parent 5ee33af commit 0048118
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,30 @@ jobs:
env:
RUSTFLAGS: "--cfg loom"
RUST_BACKTRACE: "full"
build-stable:
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
- run: cargo build
- run: cargo build --release
build-nightly:
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
profile: minimal
- run: cargo build --features nightly
- run: cargo build --release --features nightly

4 changes: 2 additions & 2 deletions hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

set -e

cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo +nightly fmt --all -- --check
cargo +nightly clippy --all-targets --all-features -- -D warnings

0 comments on commit 0048118

Please sign in to comment.