Skip to content

Commit

Permalink
try with path variable
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippNauck committed Aug 6, 2024
1 parent fcff1f1 commit 09955be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/drc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,14 @@ jobs:
- name: drc
run: |
klayout -v;
echo ${{ github.workspace }}
export KLAYOUT_HOME=/home/runner/work/IHP-Open-DesignLib/IHP-Open-DesignLib/Open-PDK/${{ vars.KLAYOUT_HOME }} klayout;
export KLAYOUT_HOME=${{ github.workspace }}/Open-PDK/${{ vars.KLAYOUT_HOME }} klayout;
result=true;
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
FileRe="FMD_QNC.*\.gds"
if [[ $file =~ $FileRe ]]; then
echo "Run DRC for $file";
path=/home/runner/work/IHP-Open-DesignLib/IHP-Open-DesignLib/${file};
OUTPUT=$(klayout -b -r /home/runner/work/IHP-Open-DesignLib/IHP-Open-DesignLib/Open-PDK/${{ vars.DRC }} -rd "in_gds"="${path}")
path=${{ github.workspace }}/${file};
OUTPUT=$(klayout -b -r ${{ github.workspace }}/Open-PDK/${{ vars.DRC }} -rd "in_gds"="${path}")
re="Number of DRC errors: [0-9]+"
if [[ $OUTPUT =~ $re ]]; then
Expand Down

0 comments on commit 09955be

Please sign in to comment.