-
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.26 KB
/
rust-writer.yml
File metadata and controls
48 lines (40 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Rust writer scaffold
on:
push:
paths:
- "impl/rust/pqf-writer/**"
- "impl/rust/pqf-reader/**"
- ".github/workflows/rust-writer.yml"
pull_request:
paths:
- "impl/rust/pqf-writer/**"
- "impl/rust/pqf-reader/**"
- ".github/workflows/rust-writer.yml"
permissions:
contents: read
jobs:
build:
name: cargo build (release)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Rust (stable)
uses: dtolnay/rust-toolchain@stable
- name: Cache Cargo
uses: actions/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
impl/rust/pqf-writer/target
key: ${{ runner.os }}-cargo-pqf-writer-${{ hashFiles('impl/rust/pqf-writer/Cargo.toml', 'impl/rust/pqf-reader/Cargo.toml') }}
- name: Build pqf-writer (release)
working-directory: impl/rust/pqf-writer
run: cargo build --release
- name: Run integration tests (writer + reader roundtrip)
working-directory: impl/rust/pqf-writer
run: cargo test --release
- name: Lint with clippy
working-directory: impl/rust/pqf-writer
run: cargo clippy --release -- -D warnings || true