Skip to content

Commit

Permalink
Improve CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-graj committed Mar 27, 2024
1 parent 0738b80 commit 15ebefb
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,25 @@ jobs:
name: Test and Benchmark
runs-on: ubuntu-latest

strategy:
matrix:
rust-version: [stable, nightly]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Rust - Stable
if: matrix.rust-version == 'stable'
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal

- name: Set up Rust - Nightly
if: matrix.rust-version == 'nightly'
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal

- name: Test
if: matrix.rust-version == 'stable'
run: cargo test

- name: Bench
if: matrix.rust-version == 'nightly'
run: cargo bench
working-directory: bench
run: cargo +nightly bench

0 comments on commit 15ebefb

Please sign in to comment.