Skip to content

Commit

Permalink
Always use rust nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Sep 9, 2024
1 parent 2aa17d5 commit af46128
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,13 @@ name: CI
on: [ push, pull_request ]
jobs:
test:
strategy:
matrix:
include:
- { name: "Rust stable", rust: stable, cargo_args: "" }
- { name: "Rust nightly", rust: nightly, cargo_args: "" }
- { name: "Rust nightly, release", rust: nightly, cargo_args: "--release" }
fail-fast: false
runs-on: ubuntu-latest
name: ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
toolchain: nightly
components: rustfmt
- name: Install dependencies
run: |
Expand All @@ -35,16 +28,10 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
target/
key: cargo-${{ matrix.rust }}-${{ matrix.cargo_args }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
cargo-${{ matrix.rust }}-${{ matrix.cargo_args }}-
cargo-${{ matrix.rust }}-
- name: Build
run: cargo build ${{ matrix.cargo_args }}
env:
RUSTFLAGS: -Dwarnings -Adead_code
key: cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: cargo-
- name: Test
run: cargo test ${{ matrix.cargo_args }}
run: cargo test
env:
DATABASE_URL: postgres://postgres@localhost:5433/
- name: Format check
Expand Down

0 comments on commit af46128

Please sign in to comment.