-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (47 loc) · 1.17 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
on:
pull_request:
push:
branches-ignore:
- gh-pages
env:
COLOR: BLUE
jobs:
build:
container:
image: ghcr.io/armmbed/mbed-os-env:latest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Compile movement firmware
run: make
working-directory: '.'
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: movement.uf2
path: build/firmware.uf2
build-simulator:
container:
image: emscripten/emsdk
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Compile movement
run: emmake make
working-directory: '.'
- name: Archive simulator build
working-directory: 'movement/make/build-sim'
run: |
tar -czf movement.tar.gz index.html firmware.wasm firmware.js
- name: Upload simulator build
uses: actions/upload-artifact@v4
with:
name: movement.tar.gz
path: build-sim/movement.tar.gz