Skip to content

Commit

Permalink
CI: rework make script matrix job
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Czarnecki <[email protected]>
  • Loading branch information
lpawelcz committed Feb 20, 2024
1 parent e1f24d3 commit e8e1d2b
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ jobs:
strategy:
fail-fast: false
matrix:
TARGET: ["L1MetadataArray_test_floorplan_make"]
MAKE_TARGET: ["do-floorplan"]
STAGE_TARGET: ["L1MetadataArray_test_floorplan"]
ORFS_MAKE_TARGET: ["do-floorplan"]
env:
DEBIAN_FRONTEND: "noninteractive"
steps:
Expand Down Expand Up @@ -98,23 +98,26 @@ jobs:
whoami
pwd
ls -la
- name: query target
- name: query stage target
run: |
bazel query ${{ matrix.TARGET }}
bazel query ${{ matrix.TARGET }} --output=build
bazel query ${{ matrix.STAGE_TARGET }}
bazel query ${{ matrix.STAGE_TARGET }} --output=build
working-directory: megaboom
- name: build target
- name: query make script target
run: |
bazel query ${{ matrix.STAGE_TARGET }}_make
bazel query ${{ matrix.STAGE_TARGET }}_make --output=build
working-directory: megaboom
- name: build make script
run: |
echo $HOME
bazel build --subcommands --verbose_failures --sandbox_debug ${{ matrix.TARGET }}
bazel build --subcommands --verbose_failures --sandbox_debug ${{ matrix.STAGE_TARGET }}_make
working-directory: megaboom
- name: set file permissions
- name: build stage target dependencies
run: |
cd bazel-bin
chmod -R +w .
cd ..
bazel build $(bazel query "deps(${{ matrix.STAGE_TARGET }}) except ${{ matrix.STAGE_TARGET }}")
working-directory: megaboom
- name: run make script
run: |
./bazel-bin/${{ matrix.TARGET }} ${{ matrix.MAKE_TARGET }}
./bazel-bin/${{ matrix.STAGE_TARGET }}_make ${{ matrix.ORFS_MAKE_TARGET }}
working-directory: megaboom

0 comments on commit e8e1d2b

Please sign in to comment.