-
-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (35 loc) · 1.26 KB
/
spi-test.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
name: spi-test
on:
push:
paths:
- '**'
- '!**.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: PaulStoffregen/cores.git
path: deps/cores
fetch-depth: 1
ref: master
- uses: actions/checkout@v2
with:
repository: PaulStoffregen/SPI.git
path: deps/SPI
fetch-depth: 1
ref: master
- name: download toolchain
run: |
curl -L "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/RC2.1/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2" --output /tmp/gcc-arm-none-eabi.tar.bz2
mkdir -p /opt
cd /opt
tar xjf /tmp/gcc-arm-none-eabi.tar.bz2
rm /tmp/gcc-arm-none-eabi.tar.bz2
echo "/opt/gcc-arm-none-eabi-9-2019-q4-major/bin"
- name: install teensy-cmake-macros
run: mkdir cmake-build-debug && cd cmake-build-debug && cmake -DCMAKE_BUILD_TYPE=Debug .. && sudo make install
- name: build
run: cd tests/spi && mkdir cmake-build-debug && cd cmake-build-debug && cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE:FILEPATH=../teensy41.toolchain.cmake .. && make