diff --git a/.github/workflows/precheck.yaml b/.github/workflows/precheck.yaml index c8fee69e..0ecd42a0 100644 --- a/.github/workflows/precheck.yaml +++ b/.github/workflows/precheck.yaml @@ -3,7 +3,7 @@ name: mpw_precheck on: workflow_dispatch: workflow_run: - workflows: ["gds"] + workflows: ['gds'] types: [completed] jobs: @@ -71,3 +71,46 @@ jobs: with: name: precheck_results path: tinytapeout-submission/precheck_results + + mpw_tapeout_checks: + env: + PYTHONIOENCODING: utf-8 + PDK_ROOT: /home/runner/pdk + + runs-on: ubuntu-24.04 + steps: + - name: checkout repo + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Checkout Caravel + uses: actions/checkout@v4 + with: + repository: efabless/caravel + path: caravel + + - name: Download artifact (run id = ${{ github.event.workflow_run.id }}) + uses: dawidd6/action-download-artifact@v3 + id: download_artifact + with: + workflow: gds.yaml + run_id: ${{ github.event.workflow_run.id }} + workflow_conclusion: success + name: efabless_submission + path: tinytapeout-submission + + - name: Create final .oas file + working-directory: caravel + run: | + cp ../tinytapeout-submission/gds/openframe_project_wrapper.gds gds + make openframe + make generate_fill USER_ID=1 PROJECT=caravel_openframe + make final USER_ID=1 PROJECT=caravel_openframe + + - name: Publish final .oas file + uses: actions/upload-artifact@v4 + if: always() + with: + name: final_oas + path: caravel/tapeout/outputs/oas/*