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 Apr 19, 2024
1 parent b1e100d commit a6bd76a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 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 @@ -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
Expand Down
27 changes: 26 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ build_openroad(
"MACRO_PLACE_HALO=10 10",
],
"place": [
"PLACE_DENSITY=0.20",
"PLACE_DENSITY=0.10",
"PLACE_PINS_ARGS=-annealing",
],
},
Expand Down

0 comments on commit a6bd76a

Please sign in to comment.