mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
Add GitHub Workflow job to build and archive simulator
This commit is contained in:
parent
bbda09e23f
commit
c313ea5911
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
|
@ -28,3 +28,31 @@ jobs:
|
|||
with:
|
||||
name: watch.uf2
|
||||
path: movement/make/build/watch.uf2
|
||||
|
||||
build-simulator:
|
||||
container:
|
||||
image: emscripten/emsdk
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Compile starter-project app
|
||||
run: emmake make
|
||||
working-directory: 'apps/starter-project'
|
||||
- name: Compile accelerometer-test app
|
||||
run: emmake make
|
||||
working-directory: 'apps/accelerometer-test'
|
||||
- name: Compile movement
|
||||
run: emmake make
|
||||
working-directory: 'movement/make'
|
||||
- name: Archive simulator build
|
||||
if: ${{ matrix.target == 'simulator' }}
|
||||
working-directory: 'movement/make/build'
|
||||
run: |
|
||||
cp watch.html index.html
|
||||
tar -czf simulator.tar.gz index.html watch.wasm watch.js
|
||||
- name: Upload simulator build
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: simulator.tar.gz
|
||||
path: movement/make/build/simulator.tar.gz
|
||||
|
|
Loading…
Reference in a new issue