From b33e3d20e4546824d138ecf72643757f4d5a601a Mon Sep 17 00:00:00 2001 From: Pawel Czarnecki Date: Tue, 20 Feb 2024 11:03:34 +0100 Subject: [PATCH] CI: rework make script matrix job Signed-off-by: Pawel Czarnecki --- .github/workflows/ci.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 25f8336..6c7da65 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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 }} 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