Skip to content

Commit 0aeb874

Browse files
committed
Replace workflows
1 parent ac36d62 commit 0aeb874

8 files changed

Lines changed: 265 additions & 173 deletions

File tree

.github/workflows/audit.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/clippy.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/linux-native.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/linux-riscv.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/macos-native.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/rust-audit.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Rust audit
2+
3+
env:
4+
CARGO_TERM_COLOR: always
5+
CARGO_TERM_UNICODE: true
6+
RUST_BACKTRACE: 1
7+
8+
on:
9+
push:
10+
paths:
11+
- '**/Cargo.toml'
12+
- '**/Cargo.lock'
13+
schedule:
14+
- cron: '0 0 * * MON'
15+
workflow_dispatch:
16+
17+
jobs:
18+
lint:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- run: |
23+
sudo apt update
24+
sudo apt install clang lld {libc,openssl}-dev
25+
26+
cat >>"${GITHUB_ENV}" <<EOF
27+
CC=clang
28+
LD=ld.lld
29+
EOF
30+
31+
mkdir -p .cargo
32+
cat >~/.cargo/config.toml <<EOF
33+
[build]
34+
rustflags = [
35+
"-C", "linker=clang",
36+
"-C", "link-arg=-fuse-ld=lld"
37+
]
38+
EOF
39+
- run: |
40+
rustup update
41+
rustup default nightly
42+
- uses: Swatinem/rust-cache@v2
43+
with:
44+
shared-key: "global"
45+
- run: cargo install --locked cargo-audit
46+
- run: cargo audit

0 commit comments

Comments
 (0)