gateware: start on different sample widths, clean up and improve cali… #265
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build & test | |
on: [push] | |
jobs: | |
ubuntu-build-icebreaker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: YosysHQ/setup-oss-cad-suite@v2 | |
- run: git submodule update --init gateware/external/no2misc | |
- run: yosys --version | |
- run: make BOARD=icebreaker CORE=mirror -C gateware | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ubuntu-build-icebreaker.bin | |
path: gateware/build/icebreaker/top.bin | |
windows-build-icebreaker: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: msys2/setup-msys2@v2 | |
with: | |
install: >- | |
git | |
make | |
- uses: actions/checkout@v3 | |
- uses: YosysHQ/setup-oss-cad-suite@v2 | |
- run: git submodule update --init gateware/external/no2misc | |
- run: | | |
export PATH=$PATH:$RUNNER_TEMP/oss-cad-suite/bin | |
export PATH=$PATH:$RUNNER_TEMP/oss-cad-suite/lib | |
yosys --version | |
make BOARD=icebreaker CORE=mirror -C gateware | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: windows-build-icebreaker.bin | |
path: gateware/build/icebreaker/top.bin | |
ubuntu-build-colorlight-i5: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: YosysHQ/setup-oss-cad-suite@v2 | |
- run: git submodule update --init gateware/external/no2misc | |
- run: yosys --version | |
- run: make BOARD=colorlight_i5 CORE=mirror -C gateware | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ubuntu-build-colorlight-i5.bin | |
path: gateware/build/colorlight_i5/top.bin | |
ubuntu-build-colorlight-i9: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: YosysHQ/setup-oss-cad-suite@v2 | |
- run: git submodule update --init gateware/external/no2misc | |
- run: yosys --version | |
- run: make BOARD=colorlight_i9 CORE=mirror -C gateware | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ubuntu-build-colorlight-i9.bin | |
path: gateware/build/colorlight_i9/top.bin | |
ubuntu-build-ecpix-5: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: YosysHQ/setup-oss-cad-suite@v2 | |
- run: git submodule update --init gateware/external/no2misc | |
- run: yosys --version | |
- run: make BOARD=ecpix5 CORE=mirror -C gateware | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ubuntu-build-ecpix-5.bin | |
path: gateware/build/ecpix5/top.bin | |
ubuntu-build-pico-ice: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: YosysHQ/setup-oss-cad-suite@v2 | |
- run: git submodule update --init gateware/external/no2misc | |
- run: yosys --version | |
- run: make BOARD=pico_ice CORE=mirror -C gateware | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ubuntu-build-pico-ice.bin | |
path: gateware/build/pico_ice/top.bin | |
run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: YosysHQ/setup-oss-cad-suite@v2 | |
- run: git submodule update --init gateware/external/no2misc | |
- run: cocotb-config -v | |
- run: cd gateware/sim && ./00_run.sh | |
run-linter: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: YosysHQ/setup-oss-cad-suite@v2 | |
- run: git submodule update --init gateware/external/no2misc | |
- run: verilator --version | |
- run: cd gateware && scripts/verilator_lint.sh |