Skip to content

Commit 1e86883

Browse files
committed
Fix CI
1 parent 607acd8 commit 1e86883

File tree

2 files changed

+27
-30
lines changed

2 files changed

+27
-30
lines changed

.github/workflows/build.yml

+21-30
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ jobs:
1212
matrix:
1313
include:
1414
# native stable
15-
- name: 'stable linux'
16-
os: 'ubuntu-latest'
17-
target: 'x86_64-unknown-linux-gnu'
18-
rust_version: 'stable'
19-
- name: 'stable mac'
20-
os: 'macos-latest'
21-
target: 'x86_64-apple-darwin'
22-
rust_version: 'stable'
23-
- name: 'stable windows'
24-
os: 'windows-latest'
25-
target: 'x86_64-pc-windows-msvc'
26-
rust_version: 'stable'
15+
- name: "stable linux"
16+
os: "ubuntu-latest"
17+
target: "x86_64-unknown-linux-gnu"
18+
rust_version: "stable"
19+
- name: "stable mac"
20+
os: "macos-latest"
21+
target: "x86_64-apple-darwin"
22+
rust_version: "stable"
23+
- name: "stable windows"
24+
os: "windows-latest"
25+
target: "x86_64-pc-windows-msvc"
26+
rust_version: "stable"
2727
fail-fast: false
2828
runs-on: ${{ matrix.os }}
2929
name: ${{ matrix.name }}
@@ -32,16 +32,7 @@ jobs:
3232
- name: checkout repo
3333
uses: actions/checkout@v2
3434

35-
- name: load cache
36-
uses: actions/cache@v2
37-
with:
38-
path: |
39-
~/.cargo/registry
40-
~/.cargo/git
41-
target
42-
key: ${{ matrix.os }}-${{ matrix.target }}-${{ matrix.rust_version }}-cargo-${{ hashFiles('**/Cargo.lock') }}
43-
restore-keys: |
44-
${{ matrix.os }}-${{ matrix.target }}-${{ matrix.rust_version }}-cargo-
35+
- uses: Swatinem/rust-cache@v2
4536

4637
- name: install rust
4738
uses: actions-rs/toolchain@v1
@@ -51,19 +42,19 @@ jobs:
5142
profile: minimal
5243
components: clippy
5344
default: true
54-
45+
5546
- name: check
5647
uses: actions-rs/cargo@v1
5748
with:
5849
command: clippy
59-
args: --target ${{ matrix.target }} -- -D warnings
60-
50+
args: --target ${{ matrix.target }} -- -D warnings
51+
6152
- name: build
6253
uses: actions-rs/cargo@v1
6354
with:
6455
command: build
6556
args: --target ${{ matrix.target }}
66-
57+
6758
- name: doc
6859
uses: actions-rs/cargo@v1
6960
env:
@@ -107,8 +98,8 @@ jobs:
10798

10899
publish:
109100
runs-on: ubuntu-latest
110-
111-
needs: ['build', 'cargo-fmt', 'cargo-deny']
101+
102+
needs: ["build", "cargo-fmt", "cargo-deny"]
112103
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
113104

114105
steps:
@@ -123,7 +114,7 @@ jobs:
123114
toolchain: stable
124115
profile: minimal
125116
default: true
126-
117+
127118
- name: install cargo-release
128119
run: |
129120
curl -LsSf https://github.com/crate-ci/cargo-release/releases/download/v0.21.0/cargo-release-v0.21.0-x86_64-unknown-linux-gnu.tar.gz | tar xzf - -C ${CARGO_HOME:-~/.cargo}/bin
@@ -136,7 +127,7 @@ jobs:
136127
137128
cargo login ${{ secrets.CRATES_TOKEN }}
138129
cargo release --no-confirm --execute $( echo '${{ github.ref }}' | sed 's?refs/tags/v??' )
139-
130+
140131
- name: generate release notes
141132
id: notes
142133
run: |

deny.toml

+6
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,9 @@ skip = [
2020
[sources]
2121
unknown-registry = "deny"
2222
unknown-git = "allow"
23+
24+
[advisories]
25+
ignore = [
26+
# paste is unmaintained, but is complete.
27+
"RUSTSEC-2024-0436",
28+
]

0 commit comments

Comments
 (0)