Create github artifacts for ECP5 devices
authorMichael Neuling <mikey@neuling.org>
Tue, 7 Jul 2020 11:18:34 +0000 (21:18 +1000)
committerMichael Neuling <mikey@neuling.org>
Tue, 7 Jul 2020 12:28:58 +0000 (22:28 +1000)
ECP5 eval board (tested and working) and Orange Crap (untested)

Signed-off-by: Michael Neuling <mikey@neuling.org>
.github/workflows/test.yml

index b2099185605e4328834bf6c6a97ce42abbe699af..6baf1bf43d8677c836c40fc9c5f98b7d15c23db1 100644 (file)
@@ -47,16 +47,32 @@ jobs:
     - uses: actions/checkout@v2
     - run: docker run -t -v $PWD:/build -w /build ghdl/vunit:llvm bash -c "make -j$(nproc) ${{ matrix.task }}"
 
-  symbiflow-ecp5:
+  symbiflow:
+    strategy:
+      fail-fast: false
+      max-parallel: 2
+      matrix:
+        task: [ ECP5-EVN, ORANGE-CRAB ]
     runs-on: ubuntu-latest
+    env:
+      DOCKER: 1
+      SYNTH_ECP5_FLAGS: -noflatten
+      FPGA_TARGET: ${{matrix.task}}
     steps:
     - uses: actions/checkout@v2
-    - run: make DOCKER=1 FPGA_TARGET=ECP5-EVN SYNTH_ECP5_FLAGS="-noflatten" microwatt.json
-    - run: make DOCKER=1 FPGA_TARGET=ECP5-EVN microwatt.bit
+    - run: make microwatt.json
+    - run: make microwatt.bit
+    - run: make microwatt.svf
+    - uses: actions/upload-artifact@v2
+      with:
+        name: ${{matrix.task}}-bitstream
+        path: microwatt.svf
 
 # test building verilog target from yosys/nextpnr
   verilog:
     runs-on: ubuntu-latest
     steps:
     - uses: actions/checkout@v2
-    - run: make DOCKER=1 microwatt.v
\ No newline at end of file
+    - run: make DOCKER=1 microwatt.v
+
+