diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c6efc6..812f126 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 + diff --git a/hooks/pre-commit b/hooks/pre-commit index 989107e..0f55737 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -2,5 +2,5 @@ set -e -cargo fmt --all -- --check -cargo clippy --all-targets --all-features -- -D warnings \ No newline at end of file +cargo +nightly fmt --all -- --check +cargo +nightly clippy --all-targets --all-features -- -D warnings \ No newline at end of file