Update project tt_um_analog_example (urish/ttihp26a-analog-test) #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: project_submission | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - projects/tt_um_*/** | |
| jobs: | |
| check_submission: | |
| name: Check user project submission | |
| runs-on: ubuntu-24.04 | |
| env: | |
| TT_CONFIG: ihp-sg13g2.yaml | |
| steps: | |
| - name: checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: setup python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| cache: 'pip' | |
| - run: pip install -r tt-multiplexer/py/requirements.txt -r tt/requirements.txt | |
| - name: Update shuttle configuration | |
| run: python ./tt/configure.py --update-shuttle | |
| - name: upload shuttle_index.json | |
| if: success() || failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: shuttle_index | |
| path: shuttle_index.json | |
| precheck: | |
| name: Run precheck | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-24.04 | |
| env: | |
| PDK: ihp-sg13g2 | |
| PDK_ROOT: ${{ github.workspace }}/IHP-Open-PDK | |
| PDK_NAME: ihp-sg13g2 | |
| TECH: ihp-sg13g2 | |
| steps: | |
| - name: checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| cache: 'pip' | |
| - name: Install dependencies | |
| shell: bash | |
| working-directory: tt/precheck | |
| run: pip install -r requirements.txt | |
| - name: Install Nix | |
| uses: rikhuijzer/cache-install@v1.1.4 | |
| with: | |
| key: nix-${{ hashFiles('precheck/default.nix') }} | |
| nix_file: 'tt/precheck/default.nix' | |
| - name: Build Nix packages | |
| shell: bash | |
| working-directory: tt/precheck | |
| run: nix-build | |
| - name: Get all project OAS files that have changed | |
| id: changed-files | |
| uses: tj-actions/changed-files@v46 | |
| with: | |
| files: projects/tt_um_*/*.oas | |
| - name: Run precheck | |
| shell: bash | |
| working-directory: tt/precheck | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| env: | |
| OAS_FILES: ${{ steps.changed-files.outputs.all_changed_files }} | |
| run: | | |
| for oas_file in $OAS_FILES; do | |
| nix-shell --run "python precheck.py --gds ${{ github.workspace }}/${oas_file} --tech $TECH" | |
| done | |
| - name: Test Summary | |
| uses: test-summary/action@v2.3 | |
| with: | |
| paths: 'tt/precheck/reports/results.xml' | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| - name: Capture test results | |
| shell: bash | |
| working-directory: tt/precheck | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| run: cat reports/results.md >> $GITHUB_STEP_SUMMARY | |
| - name: Upload reports | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: precheck-reports | |
| path: tt/precheck/reports |