Skip to content

Lock for 0.2 release #422

Lock for 0.2 release

Lock for 0.2 release #422

Workflow file for this run

on:
push:
branches:
- '*'
pull_request:
merge_group:
name: CI
jobs:
submit:
runs-on: ubuntu-latest
strategy:
matrix:
design: ['mcu_soc', 'minimal']
steps:
- name: Check out source code
uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Set up PDM
uses: pdm-project/setup-pdm@v4
with:
python-version-file: pyproject.toml
cache-dependency-path: pyproject.toml
cache: true
- name: Relock PDM
run: pdm lock -d
- name: Install dependencies
run: |
pdm install -d
- name: Lock pins
working-directory: ./${{ matrix.design }}
run: pdm run chipflow pin lock
- name: Submit to cloud backend
working-directory: ./${{ matrix.design }}
run: pdm run chipflow silicon submit --wait
env:
CHIPFLOW_API_KEY: ${{ secrets.CHIPFLOW_API_KEY}}
test:
runs-on: ubuntu-latest
strategy:
matrix:
design: ['mcu_soc', 'minimal']
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Set up PDM
uses: pdm-project/setup-pdm@v4
with:
python-version-file: pyproject.toml
cache-dependency-path: pyproject.toml
cache: true
- name: Relock PDM
run: |
pdm lock -d
- name: Install dependencies
run: |
pdm install -d
- name: Cache YoWASP build products
uses: actions/cache@v4
with:
path: ~/.cache/YoWASP
key: YoWASP-${{ runner.os }}-${{ hashFiles('./.venv/**/*.wasm') }}
restore-keys: |
YoWASP-${{ runner.os }}-
- name: Lock pins
working-directory: ./${{ matrix.design }}
run: pdm run chipflow pin lock
- name: Run unit tests
working-directory: ./${{ matrix.design }}
run: |
pdm test
- name: Run simulation tests
working-directory: ./${{ matrix.design }}
run: |
make sim-check
- name: Test submit dry run
working-directory: ./${{ matrix.design }}
run: |
pdm run chipflow silicon submit --dry-run