Skip to content

Add CI

Add CI #1

Workflow file for this run

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: bazel-orfs setup
run: |
git clone https://github.com/The-OpenROAD-Project/bazel-orfs.git ../bazel-orfs
- 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: bazel-orfs setup
run: |
git clone https://github.com/The-OpenROAD-Project/bazel-orfs.git ../bazel-orfs
- 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 }}