Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
eldruin committed Aug 3, 2023
1 parent 5ab24a5 commit c1d42b2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 39 deletions.
34 changes: 12 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:

name: CI

env:
RUSTFLAGS: '--deny warnings'

jobs:
ci-linux:
name: CI
Expand All @@ -15,7 +18,7 @@ jobs:
strategy:
matrix:
# All published crates must build on stable.
rust: [stable, beta, 1.46.0]
rust: [stable, beta, 1.56.1]

# The default target we're compiling on and for.
TARGET: [x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl]
Expand All @@ -27,26 +30,13 @@ jobs:
TARGET: x86_64-unknown-linux-gnu

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.TARGET }}
override: true
- uses: actions-rs/cargo@v1
with:
command: check
args: --target=${{ matrix.TARGET }}
- uses: actions-rs/cargo@v1
with:
command: build
args: --target=${{ matrix.TARGET }}
- uses: actions-rs/cargo@v1
with:
command: test
args: --target=${{ matrix.TARGET }}
- uses: actions-rs/cargo@v1
with:
command: build
args: --target=${{ matrix.TARGET }} --examples
target: ${{ matrix.target }}

- run: cargo check --target=${{ matrix.TARGET }}
- run: cargo build --target=${{ matrix.TARGET }}
- run: cargo test --target=${{ matrix.TARGET }}
- run: cargo build --target=${{ matrix.TARGET }} --examples
12 changes: 4 additions & 8 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@ jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: 1.55.0
override: true
toolchain: 1.71.0
components: clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: cargo clippy
13 changes: 4 additions & 9 deletions .github/workflows/rustfmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@ jobs:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: stable
override: true
toolchain: 1.71.0
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- run: cargo fmt --all -- --check

0 comments on commit c1d42b2

Please sign in to comment.