-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (53 loc) · 1.63 KB
/
ci-debug-builds.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
50
51
52
53
54
55
56
name: CI (debug builds) workflow
on:
workflow_dispatch:
push:
paths:
- "Cargo.*"
- 'src/**'
pull_request:
paths:
- "Cargo.*"
- 'src/**'
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust-channel:
- stable
cpu-target:
- x86_64-unknown-linux-musl
- aarch64-unknown-linux-musl
- armv7-unknown-linux-musleabi
- armv7-unknown-linux-musleabihf
steps:
- uses: actions/checkout@v4
- name: Cache Rust assets
id: rust-cache
uses: Swatinem/rust-cache@v2
- name: Configure Rust toolchain
if: steps.rust-cache.outputs.cache-hit != 'true'
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust-channel }}
default: true
override: true
target: ${{ matrix.cpu-target }}
profile: minimal
- name: Install Cross
uses: actions-rs/[email protected]
with:
crate: cross
version: latest
- name: Build project in debug mode
uses: actions-rs/cargo@v1
with:
command: build
args: >-
--all --locked --verbose --target=${{ matrix.cpu-target }}
use-cross: true