Add emcc build (stuck if all cpus used on GH)
authorMiodrag Milanovic <mmicko@gmail.com>
Fri, 27 May 2022 09:05:17 +0000 (11:05 +0200)
committerMiodrag Milanovic <mmicko@gmail.com>
Fri, 27 May 2022 09:05:17 +0000 (11:05 +0200)
.github/workflows/emcc.yml [new file with mode: 0644]

diff --git a/.github/workflows/emcc.yml b/.github/workflows/emcc.yml
new file mode 100644 (file)
index 0000000..0df466b
--- /dev/null
@@ -0,0 +1,20 @@
+name: Emscripten Build
+
+on: [push, pull_request]
+
+jobs:
+  emcc:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: mymindstorm/setup-emsdk@v11
+      - uses: actions/checkout@v2
+      - name: Cache sources
+        id: cache-sources
+        uses: actions/cache@v2
+        with:
+          path: .
+          key: cache-yosys
+      - name: Build
+        run: |
+          make config-emcc
+          make