summaryrefslogtreecommitdiffstats
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorAlexsander Akers <me@a2.io>2022-01-25 18:09:56 -0500
committerAlexsander Akers <me@a2.io>2022-01-25 18:13:51 -0500
commitc313ea5911fbdd49d49481e7257fb9a32f7b1c46 (patch)
tree47e11187833e87c5d8cbd97bec5c93d2c21f2de1 /.github/workflows/build.yml
parentbbda09e23f0048e42b815a200005df661337caf0 (diff)
downloadSensor-Watch-c313ea5911fbdd49d49481e7257fb9a32f7b1c46.tar.gz
Sensor-Watch-c313ea5911fbdd49d49481e7257fb9a32f7b1c46.tar.bz2
Sensor-Watch-c313ea5911fbdd49d49481e7257fb9a32f7b1c46.zip
Add GitHub Workflow job to build and archive simulator
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 93928721..7439d32e 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -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