Skip to content

Commit

Permalink
ci(precheck): experimental tapeout job
Browse files Browse the repository at this point in the history
generates the final .oas and publishes it as an artifact
  • Loading branch information
urish committed Nov 5, 2024
1 parent b9aeeba commit 214b0e5
Showing 1 changed file with 58 additions and 1 deletion.
59 changes: 58 additions & 1 deletion .github/workflows/precheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: mpw_precheck
on:
workflow_dispatch:
workflow_run:
workflows: ["gds"]
workflows: ['gds']
types: [completed]

jobs:
Expand Down Expand Up @@ -71,3 +71,60 @@ jobs:
with:
name: precheck_results
path: tinytapeout-submission/precheck_results

mpw_tapeout_checks:
env:
KLAYOUT_VERSION: 0.29.2
MAGIC_VERSION: 8.3.471

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: Install KLayout
run: |
wget https://www.klayout.org/downloads/Ubuntu-24/klayout_${KLAYOUT_VERSION}-1_amd64.deb
sudo apt-get install -y ./klayout_${KLAYOUT_VERSION}-1_amd64.deb
- name: Install magic VLSI
run: |
sudo apt-get install -y m4 python3 libx11-dev tcl-dev tk-dev libcairo2-dev mesa-common-dev libglu1-mesa-dev
git clone -b ${MAGIC_VERSION} https://github.com/RTimothyEdwards/magic magic
cd magic
./configure
make -j4
sudo make install
- 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/*

0 comments on commit 214b0e5

Please sign in to comment.