From f6bf5c587fba4a4a8abd4c0a03234fccfbf6e61e Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Thu, 17 Sep 2026 20:36:03 +0200 Subject: [PATCH] ci(test-harden): install the ihp-sg13cmos5l PDK and use LibreLane 3.1.0.dev3 - Fetch the pinned IHP-Open-PDK dev checkout into PDK_ROOT, the same revision and recipe tt-gds-action@ihp-cmos5l uses in install_sg13cmos5l.sh, and write a SOURCES file so tt_tool.py can report the PDK version. - Bump the IHP-only LibreLane to 3.1.0.dev3 (the cmos5l magic techfile needs magic >= 8.3.657; 3.0.x ships 8.3.623). - Harden the cmos5l factory test (ttihp0p4-factory-test) instead of the sg13g2 ttihp25b one. --- .github/workflows/test-harden.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-harden.yaml b/.github/workflows/test-harden.yaml index 05f5930..3296186 100644 --- a/.github/workflows/test-harden.yaml +++ b/.github/workflows/test-harden.yaml @@ -19,7 +19,9 @@ jobs: PDK_ROOT: /home/runner/pdk PROJECT_DIR: /home/runner/project LIBRELANE_VERSION: '2.4.2' - LIBRELANE_VERSION_DEV: '3.0.0.dev44' + LIBRELANE_VERSION_DEV: '3.1.0.dev3' + IHP_PDK_REPO: 'https://github.com/IHP-GmbH/IHP-Open-PDK.git' + IHP_PDK_REV: '2bbec755dc67ca3db0261c3d6163e15735d66710' steps: - name: Check out code @@ -38,18 +40,28 @@ jobs: if: "${{ matrix.pdk != 'ihp-sg13cmos5l' }}" run: pip install librelane==${LIBRELANE_VERSION} - # LibreLane 2.4.2 does not support ihp-sg13cmos5l. Remove once 3.0.0 is released. + # LibreLane 2.4.2 does not support ihp-sg13cmos5l. - name: Install librelane 3 dev (IHP only) if: "${{ matrix.pdk == 'ihp-sg13cmos5l' }}" run: pip install librelane==${LIBRELANE_VERSION_DEV} + - name: Install ihp-sg13cmos5l PDK + if: "${{ matrix.pdk == 'ihp-sg13cmos5l' }}" + run: | + mkdir -p "$PDK_ROOT" + git -C "$PDK_ROOT" init -q + git -C "$PDK_ROOT" fetch -q --depth 1 "$IHP_PDK_REPO" "$IHP_PDK_REV" + git -C "$PDK_ROOT" checkout -q FETCH_HEAD + # Record the PDK source revision, like ciel-installed PDKs do + echo "IHP-Open-PDK $IHP_PDK_REV" > "$PDK_ROOT/ihp-sg13cmos5l/SOURCES" + - name: Clone the factory test if: "${{ matrix.pdk != 'ihp-sg13cmos5l' }}" run: git clone https://github.com/tinytapeout/ttsky25a-factory-test ${PROJECT_DIR} - name: Clone the factory test (ihp-sg13cmos5l) if: "${{ matrix.pdk == 'ihp-sg13cmos5l' }}" - run: git clone https://github.com/TinyTapeout/ttihp25b-factory-test ${PROJECT_DIR} + run: git clone https://github.com/TinyTapeout/ttihp0p4-factory-test ${PROJECT_DIR} - name: Configure tt_tool.py args (IHP) if: "${{ matrix.pdk == 'ihp-sg13cmos5l' }}"