-
Notifications
You must be signed in to change notification settings - Fork 22
41 lines (31 loc) · 988 Bytes
/
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
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- thumbv7em-none-eabi
- x86_64-unknown-linux-gnu
steps:
- uses: actions/checkout@v2
- name: Install build dependencies
shell: bash
run: |
env && pwd && sudo apt-get update -y -qq && sudo apt-get install -y -qq llvm libc6-dev-i386 libclang-dev
- uses: fiam/arm-none-eabi-gcc@v1
with:
release: "9-2020-q2"
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: ${{ matrix.target }}
override: true
components: llvm-tools-preview
- name: Build
run: cargo build --release --verbose --target ${{ matrix.target }}
- name: Build examples
run: cargo build --verbose --examples --target ${{ matrix.target }}
if: matrix.target != 'x86_64-unknown-linux-gnu'