Skip to content

Commit a5ad8db

Browse files
committed
ci: add build workflow
1 parent ca0324b commit a5ad8db

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Build
3+
4+
on:
5+
push:
6+
branches:
7+
- '*'
8+
pull_request:
9+
branches:
10+
- '*'
11+
12+
jobs:
13+
test:
14+
uses: ./.github/workflows/test.yml
15+
with:
16+
branch: ${{ github.ref_name }}
17+
18+
build:
19+
name: Build
20+
runs-on: macos-latest
21+
needs: test
22+
23+
strategy:
24+
matrix:
25+
target:
26+
- x86_64-apple-darwin
27+
- aarch64-apple-darwin
28+
29+
steps:
30+
- uses: actions/checkout@v5
31+
32+
- uses: dtolnay/rust-toolchain@stable
33+
with:
34+
targets: ${{ matrix.target }}
35+
36+
- name: Build
37+
run: cargo build --release --locked --target ${{ matrix.target }}

0 commit comments

Comments
 (0)