-
Notifications
You must be signed in to change notification settings - Fork 22
48 lines (42 loc) · 1.21 KB
/
pullrequest.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
name: Rust PR Actions
on:
pull_request:
branches:
- "main"
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
info:
- os: "macOS-13"
target: "x86_64-apple-darwin"
- os: "macOS-latest"
target: "aarch64-apple-darwin"
runs-on: ${{ matrix.info.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
targets: ${{ matrix.info.target }}
- name: Enable Rust cache
uses: Swatinem/[email protected]
with:
save-if: false
- name: Fmt Check
run: cargo fmt -- --check
- name: Run clippy action to produce annotations
run: cargo clippy
- name: Download test files
run: cd tests && wget -O ./test_data.zip https://github.com/mandiant/macos-UnifiedLogs/releases/download/v1.0.0/test_data.zip && unzip test_data.zip
- name: Build tests
run: cargo test --no-run --release
- name: Run tests
run: cargo test --release