File tree Expand file tree Collapse file tree 2 files changed +80
-0
lines changed
Expand file tree Collapse file tree 2 files changed +80
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ env :
10+ CARGO_TERM_COLOR : always
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v4
17+ - uses : dtolnay/rust-toolchain@stable
18+ - run : cargo build
19+
20+ test :
21+ runs-on : ubuntu-latest
22+ steps :
23+ - uses : actions/checkout@v4
24+ - uses : dtolnay/rust-toolchain@stable
25+ - run : cargo test
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches : [main]
6+ workflow_dispatch :
7+
8+ env :
9+ CARGO_TERM_COLOR : always
10+
11+ jobs :
12+ build :
13+ strategy :
14+ matrix :
15+ include :
16+ - os : ubuntu-latest
17+ target : x86_64-unknown-linux-gnu
18+ artifact : rollcron-linux-x86_64
19+ - os : macos-latest
20+ target : x86_64-apple-darwin
21+ artifact : rollcron-macos-x86_64
22+ - os : macos-latest
23+ target : aarch64-apple-darwin
24+ artifact : rollcron-macos-aarch64
25+ - os : windows-latest
26+ target : x86_64-pc-windows-msvc
27+ artifact : rollcron-windows-x86_64.exe
28+
29+ runs-on : ${{ matrix.os }}
30+
31+ steps :
32+ - uses : actions/checkout@v4
33+
34+ - name : Install Rust toolchain
35+ uses : dtolnay/rust-toolchain@stable
36+ with :
37+ targets : ${{ matrix.target }}
38+
39+ - name : Build
40+ run : cargo build --release --target ${{ matrix.target }}
41+
42+ - name : Rename artifact (Unix)
43+ if : runner.os != 'Windows'
44+ run : mv target/${{ matrix.target }}/release/rollcron ${{ matrix.artifact }}
45+
46+ - name : Rename artifact (Windows)
47+ if : runner.os == 'Windows'
48+ run : mv target/${{ matrix.target }}/release/rollcron.exe ${{ matrix.artifact }}
49+
50+ - name : Upload artifact
51+ uses : actions/upload-artifact@v4
52+ with :
53+ name : ${{ matrix.artifact }}
54+ path : ${{ matrix.artifact }}
55+
You can’t perform that action at this time.
0 commit comments