Skip to content

Commit

Permalink
Remove deprecated test
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanaelhuffman committed Nov 15, 2024
1 parent b233915 commit de3900d
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 8 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: fpga-build
run-name: ${{ github.actor }} Building FPGA bitstreams
on:
[push]
jobs:
changes:
runs-on: self-hosted
permissions:
pull-requests: read
outputs:
cobble: ${{ steps.filter.outputs.cobble }}
buck2: ${{ steps.filter.outputs.buck2 }}
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- uses: dorny/paths-filter@v3
id: filter
with:
filters: .github/filters.yml

grapefruit:
needs: changes
if: ${{ needs.changes.outputs.buck2 == 'true' }}
runs-on: self-hosted
steps:
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Update pip reqs
run : python3 -m pip install --upgrade -r tools/requirements.txt --break-system-packages
- name: buck path
run: echo "~/.cargo/bin" >> "$GITHUB_PATH"
- name: Build grapefruit bitstream
run: buck2 build //hdl/projects/grapefruit:grapefruit --show-output

bsv_streams:
needs: changes
if: ${{ needs.changes.outputs.buck2 == 'true' }}
runs-on: self-hosted
steps:
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: 'true'
fetch-depth: 0
- name: Update pip reqs
run : python3 -m pip install --upgrade -r tools/requirements.txt --break-system-packages
- name: Env setup
run: cp BUILD.vars.gha BUILD.vars && echo "/opt/bsc-2022.01/bin" >> "$GITHUB_PATH"
- name: Restore build-dir
run: if [ -d /tmp/cobble_build_bkup ]; then cp -R /tmp/cobble_build_bkup ./build; else mkdir ./build; fi
- name: cobble init
run: ../vnd/cobble/cobble init .. --reinit
working-directory: ./build
- name: Build FPGAs
run: ./cobble build -v "//.*#bitstream"
working-directory: ./build
- name: backup build-dir
run: cp -R ./build /tmp/cobble_build_bkup
4 changes: 3 additions & 1 deletion .github/workflows/simulation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
submodules: 'true'
- name: Update pip reqs
run : python3 -m pip install --upgrade -r tools/requirements.txt --break-system-packages
- name: buck path
run: echo "~/.cargo/bin" >> "$GITHUB_PATH"
- name: Run VUnit tests
run: buck2 bxl //tools/vunit-sims.bxl:vunit_sim_gen | while IFS= read -r line; do eval "$line" ; done

Expand All @@ -55,7 +57,7 @@ jobs:
run: ../vnd/cobble/cobble init .. --reinit
working-directory: ./build
- name: Run BSIM tests
run: ./cobble bluesim_test "//.*SchmittRegTest.*"
run: ./cobble bluesim_test "//.*Test.*"
working-directory: ./build
- name: backup build-dir
run: cp -R ./build /tmp/cobble_build_bkup
7 changes: 0 additions & 7 deletions hdl/ip/vhd/vunit_components/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ vhdl_unit(
visibility = ['PUBLIC'],
)

vunit_sim(
name = "qspi_vc_tb",
srcs = glob(["qspi_controller/sims/*.vhd"]),
deps = [":qspi_controller_vc"],
visibility = ['PUBLIC'],
)

vhdl_unit(
name = "basic_stream",
srcs = glob(["basic_stream/*.vhd"]),
Expand Down

0 comments on commit de3900d

Please sign in to comment.