-
Notifications
You must be signed in to change notification settings - Fork 8
62 lines (57 loc) · 1.71 KB
/
ci.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: CI
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- run: cargo fmt --check
- run: cargo clippy --all-targets
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo gem install asciidoctor -v 2.0.18
- run: asciidoctor -b manpage -a reproducible git-gone.1.adoc
cargo-deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v2
test:
strategy:
matrix:
target:
# Linux default
- x86_64-unknown-linux-gnu
# For statically linked release builds
- x86_64-unknown-linux-musl
# macOS
- x86_64-apple-darwin
# Windows
- x86_64-pc-windows-msvc
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
flags: --no-default-features
- target: x86_64-apple-darwin
os: macOS-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
# Install musl tools for musl target
- name: Install musl tools
run: sudo apt-get install musl-tools
if: "contains(matrix.target, 'musl')"
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- run: cargo build --all-targets --target ${{ matrix.target }}
- run: cargo test --target ${{ matrix.target }}