forked from golemparts/rppal
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.26 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
name: CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
include:
- target: "armv7-unknown-linux-gnueabihf"
linker: "arm-linux-gnueabihf-gcc"
dependencies: "crossbuild-essential-armhf"
- target: "aarch64-unknown-linux-gnu"
linker: "aarch64-linux-gnu-gcc"
dependencies: "crossbuild-essential-arm64"
- target: "armv7-unknown-linux-musleabihf"
linker: "arm-linux-gnueabihf-gcc"
dependencies: "crossbuild-essential-armhf"
- target: "aarch64-unknown-linux-musl"
linker: "aarch64-linux-gnu-gcc"
dependencies: "crossbuild-essential-arm64"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install target
run: rustup target add ${{ matrix.target }}
- name: Install dependencies
run: sudo apt-get -qq install ${{ matrix.dependencies }}
- name: Build (debug)
run: cargo build --all-features --target ${{ matrix.target }} --config target.${{ matrix.target }}.linker=\"${{ matrix.linker }}\"
- name: Build (release)
run: cargo build --all-features --target ${{ matrix.target }} --config target.${{ matrix.target }}.linker=\"${{ matrix.linker }}\" --release