-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.34 KB
/
Copy pathci.yml
File metadata and controls
52 lines (46 loc) · 1.34 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
name: CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
test-build:
name: Test Build (${{ matrix.target }})
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: ubuntu-24.04-arm
target: aarch64-unknown-linux-gnu
- os: macos-latest
target: aarch64-apple-darwin
- os: windows-latest
target: x86_64-pc-windows-msvc
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.target }}
- name: Build
run: cargo build --release --target ${{ matrix.target }}
- name: Test binary exists
shell: bash
run: |
if [ "${{ runner.os }}" = "Windows" ]; then
test -f target/${{ matrix.target }}/release/zage.exe
ls -lh target/${{ matrix.target }}/release/zage.exe
else
test -f target/${{ matrix.target }}/release/zage
ls -lh target/${{ matrix.target }}/release/zage
fi