Update project tt_um_urish_simon (urish/tt10-simon-game) #17
This file contains 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 | |
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 caravel 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_ROOT: '/home/runner/pdk' | |
PDK_VERSION: 'e0f692f46654d6c7c99fc70a0c94a080dab53571' | |
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 Sky130 PDK | |
uses: TinyTapeout/volare-action@v2 | |
with: | |
pdk_name: sky130 | |
pdk_version: ${{ env.PDK_VERSION }} | |
pdk_root: ${{ env.PDK_ROOT }} | |
- name: Install Nix | |
uses: rikhuijzer/[email protected] | |
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 GDS files that have changed | |
id: changed-files | |
uses: tj-actions/changed-files@v42 | |
with: | |
files: projects/tt_um_*/*.gds | |
- name: Run precheck | |
shell: bash | |
working-directory: tt/precheck | |
if: steps.changed-files.outputs.any_changed == 'true' | |
env: | |
GDS_FILES: ${{ steps.changed-files.outputs.all_changed_files }} | |
run: | | |
for gds_file in $GDS_FILES; do | |
nix-shell --run "python precheck.py --gds ${{ github.workspace }}/${gds_file}" | |
done | |
- name: Test Summary | |
uses: test-summary/[email protected] | |
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 |