Skip to content

Complete G2 DRC missing rules with KLayout, plus run option and doc updates #50

Complete G2 DRC missing rules with KLayout, plus run option and doc updates

Complete G2 DRC missing rules with KLayout, plus run option and doc updates #50

Workflow file for this run

#==========================================================================
# Copyright 2025 IHP PDK Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Apache-2.0
#==========================================================================
name: DRC Regression Testing
concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
paths:
- 'ihp-sg13g2/libs.tech/klayout/tech/drc/**'
workflow_dispatch:
jobs:
drc_regression:
runs-on: ubuntu-latest
steps:
- name: 🧾 Checkout repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: 💾 Restore KLayout .deb from cache
id: cache-klayout
uses: actions/cache@v4
with:
path: klayout-0_30_2.deb
key: klayout-deb-cache-ubuntu-0_30_2
restore-keys: |
klayout-deb-cache-
- name: 🔽 Download KLayout .deb if not cached
if: steps.cache-klayout.outputs.cache-hit != 'true'
run: |
echo "Downloading KLayout .deb..."
curl -L --retry 5 --retry-delay 5 --retry-all-errors \
-o klayout-0_30_2.deb https://www.klayout.org/downloads/Ubuntu-24/klayout_0.30.2-1_amd64.deb
- name: ⚙️ Install KLayout
run: |
sudo apt update -qq -y
sudo apt install ./klayout-0_30_2.deb
echo "✅ KLayout version:"
klayout -v
- name: 🧪 Run KLayout DRC Regression
run: make test-DRC-main