-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Add tests for docker stage targets
Signed-off-by: Eryk Szpotanski <[email protected]>
- Loading branch information
1 parent
3d15848
commit b35a2d8
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: MegaBoom build tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build-stage-target: | ||
name: Build sample stage targets | ||
runs-on: ubuntu-22.04 | ||
defaults: | ||
run: | ||
shell: bash | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
STAGE_TARGET: | ||
- tag_array_64x184_generate_abstract | ||
- L1MetadataArray_test_generate_abstract | ||
- regfile_128x65_floorplan | ||
env: | ||
DEBIAN_FRONTEND: "noninteractive" | ||
steps: | ||
- name: Free Disk Space (Ubuntu) | ||
uses: jlumbroso/free-disk-space@main | ||
with: | ||
swap-storage: false | ||
- name: Print info | ||
run: | | ||
echo "USER: "$(whoami) | ||
echo "PWD: "$(pwd) | ||
ls -la | ||
echo "HOME: "$HOME | ||
docker --version | ||
- name: Checkout bazel-orfs | ||
uses: actions/checkout@v4 | ||
- name: load docker image | ||
run: | | ||
bazel run --subcommands --verbose_failures --sandbox_debug @bazel-orfs//:orfs_env | ||
- name: query target | ||
run: | | ||
bazel query ${{ matrix.STAGE_TARGET }} | ||
bazel query ${{ matrix.STAGE_TARGET }} --output=build | ||
- name: build target | ||
run: | | ||
bazel build --subcommands --verbose_failures --sandbox_debug ${{ matrix.STAGE_TARGET }} |