-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.29 KB
/
ci.yml
File metadata and controls
53 lines (47 loc) · 1.29 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
name: CI
on:
push:
branches: [ main ]
pull_request:
jobs:
run:
name: Build for (${{ matrix.name }})
runs-on: ${{ matrix.os }}
permissions:
contents: read
strategy:
fail-fast: false
matrix:
include:
- name: Windows
os: windows-latest
target: x86_64-pc-windows-msvc
arch: x86_64
- name: Linux
os: ubuntu-latest
target: x86_64-unknown-linux-gnu
arch: x86_64
- name: macOS
os: macos-latest
target: aarch64-apple-darwin
arch: aarch64
steps:
- uses: actions/checkout@v6
- uses: ilammy/msvc-dev-cmd@v1
if: matrix.os == 'windows-latest'
- name: Setup Rust toolchain
run: |
rustup toolchain install
- name: Cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
cache-all-crates: "true"
- name: Build
run: |
cargo build --release --all-targets --all-features --workspace --target ${{ matrix.target }}
- name: Upload release
uses: actions/upload-artifact@v7
with:
name: RandFill-${{ matrix.arch }}-${{ matrix.name }}
path: "./target/${{ matrix.target }}/release/*"