-
Notifications
You must be signed in to change notification settings - Fork 10
55 lines (45 loc) · 1.39 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
PACKAGE_NAME: tq
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
build-binary:
strategy:
fail-fast: true
matrix:
architecture:
- target: "x86_64-unknown-linux-musl"
name: "amd64"
- target: "aarch64-unknown-linux-musl"
name: "arm64"
- target: "armv7-unknown-linux-musleabi"
name: "armv7"
- target: "armv7-unknown-linux-musleabihf"
name: "armv7hf"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install cargo-binstall
run: curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
- name: Install cross
run: cargo binstall -y cross
- name: Run the tests
run: cross test --target ${{ matrix.architecture.target }} --release
- name: Build the binary for the target
run: cross build --target ${{ matrix.architecture.target }} --release --bins --all-features
security_audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rustsec/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}