summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2023-03-09 09:12:43 +0000
committerGitHub <noreply@github.com>2023-03-09 09:12:43 +0000
commita25c06d1b1d91fec6bb3414602d1b9e5f31b6088 (patch)
treec87306b8f2fc75b7f1724a044e80cca321da9e6c
parentc9c5d9be5bde3b356a5a18af8324b59cc1492642 (diff)
parent4f2d692433858db7bfbc4a94471649ff0345a50b (diff)
Try #207:trying
-rw-r--r--.github/workflows/ci.yml52
1 files changed, 31 insertions, 21 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5a2274a..4533c8b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -21,19 +21,21 @@ jobs:
- beta
# - nightly
+ # required because we have a different toolchain than {{ matrix.rust }} in
+ # rust-toolchain.toml, which we use for the flake.nix
+ env:
+ RUSTUP_TOOLCHAIN: ${{ matrix.rust }}
+
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install toolchain
- uses: actions-rs/toolchain@v1
+ uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- override: true
- uses: swatinem/rust-cache@v2
- name: cargo-check
- uses: actions-rs/cargo@v1
- with:
- command: check
+ run: cargo check
deny:
name: deny
@@ -59,17 +61,19 @@ jobs:
name: format
runs-on: ubuntu-latest
+ # required because we have a different toolchain in
+ # rust-toolchain.toml, which we use for the flake.nix
+ env:
+ RUSTUP_TOOLCHAIN: 1.67.0
+
steps:
- uses: actions/checkout@v3
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.67.0
- - run: rustup component add rustfmt
+ components: rustfmt
- name: cargo-fmt
- uses: actions-rs/cargo@v1
- with:
- command: fmt
- args: -- --check
+ run: cargo fmt -- --check
test:
@@ -82,33 +86,39 @@ jobs:
- stable
- beta
# - nightly
+
+ # required because we have a different toolchain than {{ matrix.rust }} in
+ # rust-toolchain.toml, which we use for the flake.nix
+ env:
+ RUSTUP_TOOLCHAIN: ${{ matrix.rust }}
+
steps:
- name: Checkout sources
uses: actions/checkout@v3
- - name: Install toolchain
- uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- override: true
- uses: swatinem/rust-cache@v2
- name: cargo-test
- uses: actions-rs/cargo@v1
- with:
- command: test
- args: --all --all-features
+ run: cargo test --all --all-features
clippy:
name: clippy
runs-on: ubuntu-latest
+
+ # required because we have a different toolchain in
+ # rust-toolchain.toml, which we use for the flake.nix
+ env:
+ RUSTUP_TOOLCHAIN: 1.67.0
+
steps:
- uses: actions/checkout@v3
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.67.0
- override: true
+ components: clippy
- uses: swatinem/rust-cache@v2
- - run: rustup component add clippy
- name: cargo-clippy
run: cargo clippy --all --all-targets --all-features -- -D warnings