forked from adafruit/seesaw
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.18 KB
/
build.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
name: Build CI
env:
downloadurl: https://s3.amazonaws.com/adafruit-circuit-python/gcc-arm-embedded_7-2018q2-1~xenial1_amd64.deb
on:
push:
pull_request:
release:
types: [published]
check_suite:
types: [rerequested]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- uses: actions/cache@v1
id: cache
with:
path: ../debs
key: ${{ env.downloadurl }}-debs
- name: Download gcc-arm-embedded
if: steps.cache.outputs.cache-hit != 'true'
run: |
mkdir ../debs
wget -O ../debs/gcc-arm-embedded.deb $downloadurl
- name: Install deps
run: |
sudo dpkg -i ../debs/*.deb
- name: Dump Versions
run: |
gcc --version
arm-none-eabi-gcc --version
python3 --version
lscpu
- uses: actions/checkout@v1
with:
submodules: true
- name: Build all
run: |
make clean
make all-boards -j $((1+`getconf _NPROCESSORS_ONLN`))
- uses: actions/[email protected]
with:
name: seesaw-firmware
path: fw