From 1dd72822404f22f86b1322ebc8e6d69243ab8d65 Mon Sep 17 00:00:00 2001 From: Eryk Szpotanski Date: Thu, 18 Apr 2024 18:06:38 +0200 Subject: [PATCH] CI: Add tests for open_ targets Signed-off-by: Eryk Szpotanski --- .github/scripts/build_local_target.sh | 2 +- .github/workflows/ci.yml | 27 ++++++++++++++++++++++++++- BUILD | 2 +- 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/.github/scripts/build_local_target.sh b/.github/scripts/build_local_target.sh index 9fd6f3ce..9a8d118e 100755 --- a/.github/scripts/build_local_target.sh +++ b/.github/scripts/build_local_target.sh @@ -5,7 +5,7 @@ set -e target_name=${TARGET:-"tag_array_64x184"} 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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f548665..f6754199 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,12 +67,22 @@ 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' + run: | + for stage in "synth" "floorplan" "place" "cts" "route" "final"; do + echo | bazel run --subcommands --verbose_failures --sandbox_debug L1MetadataArray_full_${stage}_open + done test-make-script-target: name: Execute sample _make scripts runs-on: ubuntu-22.04 container: image: ghcr.io/antmicro/bazel-orfs@sha256:78b4c15830d75e026dc2294b280cb5ff1200f6ee7902a714dca71fd61b5b2e4e + volumes: + - /usr/share/dotnet:/usr/share/dotnet + - /usr/local/lib/android:/usr/local/lib/android + - /opt/ghc:/opt/ghc defaults: run: shell: bash @@ -86,6 +96,15 @@ jobs: shell: bash run: | echo HOME=/root | sudo tee -a $GITHUB_ENV + - name: Increase build space + run: | + echo "Before cleanup" + df -H + rm -rf /usr/share/dotnet/* + rm -rf /usr/local/lib/android/* + rm -rf /opt/ghc/* + echo "After cleanup" + df -H - name: Print info run: | echo "USER: "$(whoami) @@ -109,8 +128,14 @@ 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 "open_synth" "floorplan" "place" "cts" "route" "final"; do + bazel build --subcommands --verbose_failures --sandbox_debug L1MetadataArray_test_gds_${stage}_make + echo | bazel-bin/L1MetadataArray_test_gds_${stage}_make open_${stage#open_} + done test-stage-make-targets: name: Run ORFS using stage targets and _make scrips diff --git a/BUILD b/BUILD index 92d1a626..e7c03f0d 100644 --- a/BUILD +++ b/BUILD @@ -125,7 +125,7 @@ build_openroad( "MACRO_PLACE_HALO=10 10", ], "place": [ - "PLACE_DENSITY=0.20", + "PLACE_DENSITY=0.10", "PLACE_PINS_ARGS=-annealing", ], },