-
-
Notifications
You must be signed in to change notification settings - Fork 13
41 lines (36 loc) · 1.02 KB
/
check.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
name: check
on:
push:
branches:
- '**'
paths:
- .github/workflows/*.yml
- Cargo.toml
- src/**
jobs:
check:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
- run: rustup update --no-self-update stable && rustup default stable
- run: cargo fmt --check
- run: cargo check --release --locked
- run: cargo build --release --locked
- run: |
cp target/release/macmon macmon
tar czf macmon-${{ github.ref_name }}.tar.gz readme.md LICENSE macmon
ls -lah | grep macmon
id: archive
- uses: actions/upload-artifact@v4
with:
name: macmon-${{ github.ref_name }}.tar.gz
path: macmon-${{ github.ref_name }}.tar.gz