Skip to content

Commit

Permalink
CI: test <stage>_issue ORFS targets
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Czarnecki <[email protected]>
  • Loading branch information
lpawelcz committed May 10, 2024
1 parent fee36ae commit b12c301
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,42 @@ jobs:
-w $(pwd)
$DOCKER_IMAGE
.github/scripts/build_local_target.sh
test-make-issue:
name: Run ORFS <stage>_issue target
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
env:
DEBIAN_FRONTEND: "noninteractive"
STAGE_TARGET: "L1MetadataArray_test_place"
ISSUE_TARGET: "L1MetadataArray_test_cts_local_make"
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
swap-storage: false
- name: Checkout bazel-orfs
uses: actions/checkout@v4
- name: load docker image
run: |
bazel run --subcommands --verbose_failures --sandbox_debug orfs_env
- name: build target dependencies
run: |
bazel build --subcommands --verbose_failures --sandbox_debug ${STAGE_TARGET}
- name: generate script
run: |
bazel build --subcommands --verbose_failures --sandbox_debug ${ISSUE_TARGET}
- name: save and test the issue archive
run: >
docker run --rm
-v $(realpath ~/.cache):$(realpath ~/.cache)
-v $(pwd):$(pwd)
-e FLOW_HOME=/OpenROAD-flow-scripts/flow
-e SKIP_BUILD=1
-e TARGET
-e STAGES
-w $(pwd)
$DOCKER_IMAGE
./bazel-bin/${ISSUE_TARGET} cts_issue; mkdir issue_test; tar -xvf bazel-bazel-orfs/cts_L1MetadataArray*.tar.gz -C issue_test; cd issue_test; cd cts_L1MetadataArray*; ls -l $FLOW_HOME; ls -l; $FLOW_HOME/..; source $FLOW_HOME/../env.sh; ./run*

0 comments on commit b12c301

Please sign in to comment.