-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.2 KB
/
ci.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
name: CI
on:
pull_request:
branches:
- main
workflow_dispatch:
env:
DEV_PACKAGES: build-essential musl musl-dev musl-tools pkg-config libssl-dev librust-openssl-sys-dev libc6 clang
jobs:
linux-check:
name: Linux Check
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-linux-check-${{ matrix.target }}
cancel-in-progress: true
steps:
- name: install system build dependencies
run: sudo apt-get update && sudo apt-get install ${DEV_PACKAGES}
- uses: actions/checkout@v3
with:
fetch-depth: 50
- name: Setup | Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: ${{ matrix.target }}
- name: Install cross
run: cargo install cross --locked
- name: Build Checking on ${{ matrix.target }} using cross
run: cross check --target=${{ matrix.target }} --locked
- name: Build on ${{ matrix.target }} using cross
run: cross build --target=${{ matrix.target }} --locked
strategy:
fail-fast: true
matrix:
target:
# - aarch64-unknown-linux-musl
- x86_64-unknown-linux-musl