Skip to content

Commit

Permalink
CI investigation
Browse files Browse the repository at this point in the history
  • Loading branch information
marwaneltoukhy committed Aug 20, 2023
1 parent e710d12 commit 6eb18ed
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/user_project_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,16 @@ jobs:
- name: Export PDKPATH
run: echo "PDKPATH=/home/runner/work/pdk/sky130A" >> $GITHUB_ENV

- name: Get memory usage
run: |
free
memory_usage=$(free)
- name: Download PDK
run: |
MPW_TAG=main CARAVEL_LITE=0 make install
make pdk-with-volare
echo "Memory usage after step: ${memory_usage}"
- name: Run MPW-Precheck
run: |
Expand All @@ -39,6 +45,7 @@ jobs:
export OUTPUT_DIRECTORY=$INPUT_DIRECTORY/mpw_precheck_result
export OUTPUT=$OUTPUT_DIRECTORY/logs/precheck.log
git clone --depth=1 -b mpw-7a https://github.com/efabless/mpw_precheck.git
echo "Memory usage after step: ${memory_usage}"
docker run -v "$PRECHECK_ROOT":"$PRECHECK_ROOT" -v "$INPUT_DIRECTORY":"$INPUT_DIRECTORY" -v "${{ env.PDK_ROOT }}":"${{ env.PDK_ROOT }}" -e INPUT_DIRECTORY="$INPUT_DIRECTORY" -e PDK_ROOT="${{ env.PDK_ROOT }}" -e PDKPATH="${{ env.PDKPATH }}" -u $(id -u "$USER"):$(id -g "$USER") efabless/mpw_precheck:latest bash -c "cd $PRECHECK_ROOT; python3 mpw_precheck.py --input_directory $INPUT_DIRECTORY --pdk_path ${{ env.PDKPATH }} --output_directory $OUTPUT_DIRECTORY license makefile consistency xor magic_drc klayout_beol klayout_feol klayout_met_min_ca_density klayout_offgrid klayout_pin_label_purposes_overlapping_drawing klayout_zeroarea"
cnt=$(grep -c "All Checks Passed" "$OUTPUT")
if ! [[ $cnt ]]; then cnt=0; fi
Expand Down

0 comments on commit 6eb18ed

Please sign in to comment.