Skip to content

Commit

Permalink
Update the CI workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
partim committed Sep 10, 2024
1 parent 1df59ea commit 33b1f5c
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
name: ci
on:
push:
branches: [ master ]
branches:
- main
- series-*
pull_request:
branches: [ master ]

env:
CARGO_TERM_COLOR: always

branches:
- main
- series-*
jobs:
test:
name: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
rust: [1.42.0, stable]
fail-fast: false
rust: [1.70.0, stable]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust
uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- if: matrix.rust != 'nightly'
- if: matrix.rust == 'stable'
run: rustup component add clippy
- if: matrix.rust != 'nightly'
- if: matrix.rust == 'stable'
run: cargo clippy -- -D warnings
- run: cargo build --verbose
- run: cargo build --verbose --locked
- run: cargo test --verbose

0 comments on commit 33b1f5c

Please sign in to comment.