Dockerfile: operate on root #9
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: Megaboom build tests | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
jobs: | |
build-stage-target: | |
name: Build sample stage targets | |
runs-on: ubuntu-22.04 | |
container: | |
image: ghcr.io/antmicro/megaboom:latest | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
fail-fast: false | |
matrix: | |
TARGET: ["tag_array_64x184_generate_abstract", "L1MetadataArray_test_generate_abstract", "regfile_128x65_floorplan"] | |
env: | |
DEBIAN_FRONTEND: "noninteractive" | |
steps: | |
- name: pre checkout info | |
run: | | |
whoami | |
pwd | |
ls -la | |
- name: Checkout Megaboom | |
uses: actions/checkout@v4 | |
with: | |
path: megaboom | |
- name: Clone bazel-orfs | |
uses: actions/checkout@v4 | |
with: | |
repository: antmicro/bazel-orfs | |
path: bazel-orfs | |
- name: post checkout info | |
run: | | |
whoami | |
pwd | |
ls -la | |
- name: query target | |
run: | | |
bazel query ${{ matrix.TARGET }} | |
bazel query ${{ matrix.TARGET }} --output=build | |
- name: build target | |
run: | | |
bazel build --subcommands --verbose_failures --sandbox_debug ${{ matrix.TARGET }} | |
test-local-runner-target: | |
name: Execute sample local_runner scripts | |
runs-on: ubuntu-22.04 | |
container: | |
image: ghcr.io/antmicro/megaboom:latest | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
fail-fast: false | |
matrix: | |
TARGET: ["L1MetadataArray_test_floorplan_local_runner", "L1MetadataArray_test_cts_local_runner"] | |
MAKE_TARGET: ["do-floorplan", "do-cts"] | |
env: | |
DEBIAN_FRONTEND: "noninteractive" | |
steps: | |
- name: pre checkout info | |
run: | | |
whoami | |
pwd | |
ls -la | |
- name: Checkout Megaboom | |
uses: actions/checkout@v4 | |
with: | |
path: megaboom | |
- name: Clone bazel-orfs | |
uses: actions/checkout@v4 | |
with: | |
repository: antmicro/bazel-orfs | |
path: bazel-orfs | |
- name: post checkout info | |
run: | | |
whoami | |
pwd | |
ls -la | |
- name: query target | |
run: | | |
bazel query ${{ matrix.TARGET }} | |
bazel query ${{ matrix.TARGET }} --output=build | |
- name: build target | |
run: | | |
bazel build --subcommands --verbose_failures --sandbox_debug ${{ matrix.TARGET }} | |
- name: set file permissions | |
run: | | |
cd bazel-bin | |
chmod -R +w . | |
cd .. | |
- name: run local_runner | |
run: | | |
./bazel-bin/${{ matrix.TARGET }} ${{ matrix.MAKE_TARGET }} |