Skip to content

Commit

Permalink
CI: Add tests for open_ targets
Browse files Browse the repository at this point in the history
Signed-off-by: Eryk Szpotanski <[email protected]>
  • Loading branch information
eszpotanski committed May 2, 2024
1 parent aee0711 commit 61ceae7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/build_local_target.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ target_name=${TARGET:-"tag_array_64x184"}
flow=${FLOW:-"local_make"}
if [[ -z "$STAGES" ]]; then
if [[ "$target_name" == L1MetadataArray_* ]]; then
STAGES=("synth_sdc" "synth" "floorplan" "place" "cts" "grt" "generate_abstract")
STAGES=("synth_sdc" "synth" "floorplan" "place" "cts" "grt" "route" "final" "generate_abstract")
else
STAGES=("synth_sdc" "synth" "memory" "floorplan" "generate_abstract")
fi
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
STAGE_TARGET:
- "tag_array_64x184_generate_abstract_make"
- "L1MetadataArray_test_generate_abstract_make"
- "L1MetadataArray_full_generate_abstract_make"
- "L1MetadataArray_full_final_gui"
- "L1MetadataArray_test_gds_final_make"
- "tag_array_64x184_memory_make"
env:
Expand Down Expand Up @@ -67,6 +67,13 @@ jobs:
- name: build target
run: |
bazel build --subcommands --verbose_failures --sandbox_debug ${{ matrix.STAGE_TARGET }}
- name: open target
if: matrix.STAGE_TARGET == 'L1MetadataArray_full_generate_abstract_gui'
run: |
for stage in "synth" "floorplan" "place" "cts" "route" "final"; do
bazel build --subcommands --verbose_failures --sandbox_debug L1MetadataArray_full_${stage}_scripts
echo | ./bazel-bin/L1MetadataArray_full_${stage}_docker open_${stage}
done
test-scripts-target-docker:
name: Docker flow - test _scripts targets
Expand Down Expand Up @@ -142,8 +149,13 @@ jobs:
run: .github/scripts/build_local_target.sh
- name: build local stage targets - L1MetadataArray_test
env:
TARGET: L1MetadataArray_test
TARGET: L1MetadataArray_test_gds
run: .github/scripts/build_local_target.sh
- name: open target
run: |
for stage in "synth" "floorplan" "place" "cts" "route" "final"; do
echo | bazel-bin/L1MetadataArray_test_gds_${stage}_local_make open_${stage}
done
test-docker-local-targets:
name: Run ORFS using docker and local flow
Expand Down
2 changes: 1 addition & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ build_openroad(
"MACRO_PLACE_HALO=10 10",
],
"place": [
"PLACE_DENSITY=0.20",
"PLACE_DENSITY=0.10",
"PLACE_PINS_ARGS=-annealing",
],
}, ['SKIP_REPORT_METRICS=1']),
Expand Down

0 comments on commit 61ceae7

Please sign in to comment.