summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoeycastillo <joeycastillo@utexas.edu>2022-01-25 18:59:40 -0500
committerGitHub <noreply@github.com>2022-01-25 18:59:40 -0500
commit725f17bfb60e402dc0efc2e58cdcfc592ed5ff45 (patch)
tree9f7f49154853225162ee5d72a7830353530bf92d
parentbbda09e23f0048e42b815a200005df661337caf0 (diff)
parent2f1458bd46c4fa5843e8924068def16482815376 (diff)
downloadSensor-Watch-725f17bfb60e402dc0efc2e58cdcfc592ed5ff45.tar.gz
Sensor-Watch-725f17bfb60e402dc0efc2e58cdcfc592ed5ff45.tar.bz2
Sensor-Watch-725f17bfb60e402dc0efc2e58cdcfc592ed5ff45.zip
Merge pull request #46 from a2/simulator-workflow
Add GitHub Workflow job to build and archive simulator
-rw-r--r--.github/workflows/build.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 93928721..4b1f6fab 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -28,3 +28,24 @@ 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 movement
+ run: emmake make
+ working-directory: 'movement/make'
+ - name: Archive simulator build
+ 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