deprecate/vexriscv: remove vexriscv as it is no longer used #1144
This file contains hidden or 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: | |
unit-tests-amaranth: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pdm-project/setup-pdm@v4 | |
- run: | | |
pdm install | |
pdm test | |
working-directory: gateware | |
unit-tests-rust: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
components: rustfmt, clippy, llvm-tools | |
- run: | # fake generated SoC constants from lib | |
touch src/generated_constants.rs | |
RUST_LOG=debug cargo test | |
working-directory: gateware/src/rs/lib | |
- run: RUST_LOG=debug cargo test_linux | |
working-directory: gateware/src/rs/hal | |
- run: RUST_LOG=debug cargo test | |
working-directory: gateware/src/rs/opts | |
build-bitstreams-soc: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
hw_rev: ["r2", "r3", "r4"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pdm-project/setup-pdm@v4 | |
- run: git submodule update --init --recursive | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
components: rustfmt, clippy, llvm-tools | |
targets: riscv32im-unknown-none-elf, riscv32imafc-unknown-none-elf | |
- run: | | |
cargo install cargo-binutils form | |
cargo install svd2rust --locked | |
- name: Install PDM dependencies | |
run: pdm install | |
working-directory: gateware | |
- name: Build all SoC bitstreams (${{ matrix.hw_rev }}) | |
run: ./scripts/build_bitstreams_soc.sh --hw=${{ matrix.hw_rev }} | |
working-directory: gateware | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: bitstreams-soc-${{ matrix.hw_rev }}.zip | |
path: gateware/build/*/*-*-*.tar.gz | |
retention-days: 1 | |
build-bitstreams-no-soc: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
hw_rev: ["r2", "r3", "r4"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pdm-project/setup-pdm@v4 | |
- run: git submodule update --init --recursive | |
- name: Install PDM dependencies | |
run: pdm install | |
working-directory: gateware | |
- name: Build all non-SoC bitstreams (${{ matrix.hw_rev }}) | |
run: ./scripts/build_bitstreams_no_soc.sh --hw=${{ matrix.hw_rev }} | |
working-directory: gateware | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: bitstreams-no-soc-${{ matrix.hw_rev }}.zip | |
path: gateware/build/*/*-*-*.tar.gz | |
retention-days: 1 | |
sim-bitstream: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
config: | |
- name: dsp-diffuser-sim | |
cmd: dsp sim --dsp-core psram_diffuser | |
- name: vectorscope-sim | |
cmd: vectorscope_no_soc sim --fs-192khz | |
hw_rev: ["r2", "r3", "r4"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pdm-project/setup-pdm@v4 | |
- uses: YosysHQ/setup-oss-cad-suite@v3 | |
- run: git submodule update --init --recursive | |
- name: Install PDM dependencies | |
run: pdm install | |
working-directory: gateware | |
- name: Build ${{ matrix.config.cmd }} --hw ${{ matrix.hw_rev }} | |
run: pdm ${{ matrix.config.cmd }} --hw ${{ matrix.hw_rev }} | |
working-directory: gateware | |
package-artifacts: | |
needs: [build-bitstreams-soc, build-bitstreams-no-soc] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
pattern: "*" | |
path: . | |
merge-multiple: true | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: bitstreams | |
path: "*" |