-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.06 KB
/
build.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
42
43
44
45
46
47
48
49
name: Build
on:
pull_request:
push:
branches: [main]
jobs:
build:
name: build / ${{ matrix.target }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-22.04
- target: aarch64-unknown-linux-gnu
os: ubuntu-22.04
- target: x86_64-pc-windows-msvc
os: windows-2022
- target: x86_64-apple-darwin
os: macos-12
- target: aarch64-apple-darwin
os: macos-12
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
target: ${{ matrix.target }}
toolchain: stable
override: true
default: true
- name: Build
uses: actions-rs/cargo@v1
with:
use-cross: ${{ !contains(matrix.target, 'x86_64') }}
command: build
args: --release --target ${{ matrix.target }}