forked from taunusflieger/nucleo-h755-embassy
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (38 loc) · 927 Bytes
/
check.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
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
runner:
- ubuntu-latest
- macos-latest
include:
- runner: ubuntu-latest
install-gcc: sudo apt-get install gcc-arm-none-eabi
- runner: macos-latest
install-gcc: brew install --cask gcc-arm-embedded
runs-on: ${{ matrix.runner }}
steps:
- name: Install gcc-arm-none-eabi
run: ${{ matrix.install-gcc }}
- name: Rust toolchain
uses: actions-rs/toolchain@v1
with:
target: thumbv7em-none-eabihf
toolchain: stable
override: true
- name: Rust cache
uses: Swatinem/rust-cache@v2
- name: Checkout
uses: actions/checkout@v3
- name: Build
uses: actions-rs/cargo@v1
with:
command: build