-
-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (81 loc) · 2.52 KB
/
main.yml
File metadata and controls
91 lines (81 loc) · 2.52 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Run clippy and build
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: "19 2 * * 4"
env:
CARGO_TERM_COLOR: always
jobs:
clippy:
name: Lints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
- run: cargo fmt --all -- --check
- run: cargo clippy
build-macos:
name: Build macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@nightly
with:
targets: x86_64-apple-darwin, aarch64-apple-darwin
- run: cargo build --target x86_64-apple-darwin
- run: cargo build --target aarch64-apple-darwin
- run: cargo build --target x86_64-apple-darwin --release
- run: cargo build --target aarch64-apple-darwin --release
- uses: actions/upload-artifact@v7.0.0
with:
name: macOS Debug
path: target/x86_64-apple-darwin/debug/panic-info-reader
- uses: actions/upload-artifact@v7.0.0
with:
name: macOS Apple Silicon Debug
path: target/aarch64-apple-darwin/debug/panic-info-reader
- uses: actions/upload-artifact@v7.0.0
with:
name: macOS Release
path: target/x86_64-apple-darwin/release/panic-info-reader
- uses: actions/upload-artifact@v7.0.0
with:
name: macOS Apple Silicon Release
path: target/aarch64-apple-darwin/release/panic-info-reader
build:
name: Build Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@nightly
- run: cargo build
- run: cargo build --release
- uses: actions/upload-artifact@v7.0.0
with:
name: Linux Debug
path: target/debug/panic-info-reader
- uses: actions/upload-artifact@v7.0.0
with:
name: Linux Release
path: target/release/panic-info-reader
build-windows:
name: Build Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@nightly
- run: cargo build -Zunstable-options --artifact-dir=out-debug
- run: cargo build --release -Zunstable-options --artifact-dir=out
- uses: actions/upload-artifact@v7.0.0
with:
name: Windows Debug
path: out-debug/*
- uses: actions/upload-artifact@v7.0.0
with:
name: Windows Release
path: out/*