-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (30 loc) · 1.03 KB
/
build.yaml
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
name: CI
on:
push:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: ['pc-windows-msvc', 'apple-darwin', 'unknown-linux-gnu']
arch: [x86_64, aarch64]
include:
- runner: ubuntu-latest
os: unknown-linux-gnu
- runner: windows-latest
os: pc-windows-msvc
- runner: macos-latest
os: apple-darwin
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- name: Configure runner
run: rustup target add ${{matrix.arch}}-${{matrix.os}}
- name: Configure runner
if: matrix.os == 'unknown-linux-gnu'
run: |
sudo apt-get update
sudo apt-get -o Acquire:retries=3 install libsystemd-dev
- name: Build
shell: pwsh
run: cargo build --target ${{matrix.arch}}-${{matrix.os}}