add icestick builds / iCE40 to CI (#1)

* initial commit

* fix yaml file

* add yosys deps to CI

* fix indentation in ice40 CI builds

* update ice40 CI

* try using oss cad suite instead of compiling from source

* fix pathing directory

* ensure jobs are sequential

* ensure we're in the same shell

* move source files to same action

* update icestick project structure to match the a7's

* update build script for ice40 to match updated proj structure

* update CI to match previous

* update CI path

* update build script naming

---------

Co-authored-by: fischerm <[email protected]>
This commit is contained in:
Fischer Moseley
2023-02-23 18:52:22 -05:00
committed by GitHub
co-authored by fischerm
parent 6475869fcb
commit 3728a5263d
19 changed files with 743 additions and 4 deletions
@@ -0,0 +1,14 @@
name: build_icestick_examples
on: [push]
jobs:
install-toolchain:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install yosys
run: |
wget --no-verbose https://github.com/YosysHQ/oss-cad-suite-build/releases/download/2023-02-23/oss-cad-suite-linux-x64-20230223.tgz
tar -xzf oss-cad-suite-linux-x64-20230223.tgz
export PATH="$(pwd)/oss-cad-suite/bin/:$PATH"
cd examples/icestick/counter
./build.sh
@@ -1,4 +1,4 @@
name: build_examples
name: build_nexys_a7_examples
on: [push]
jobs:
counter:
@@ -27,12 +27,12 @@ jobs:
python3 -m pip install .
- name: Generate Core
run: manta gen examples/counter/manta.yaml examples/counter/src/debug.sv
run: manta gen examples/nexys_a7/counter/manta.yaml examples/nexys_a7/counter/src/debug.sv
- name: Build Verilog
working-directory: examples/counter
working-directory: examples/nexys_a7/counter
run: mkdir obj && python3 lab-bc.py
- name: Print build.log
working-directory: examples/counter
working-directory: examples/nexys_a7/counter
run: cat obj/build.log