Skip to content

Update CI to support python3.10, install latest conda version and update openroad version #118

Update CI to support python3.10, install latest conda version and update openroad version

Update CI to support python3.10, install latest conda version and update openroad version #118

Workflow file for this run

name: Cryo Generator Workflow
on:
push:
branches:
- main
pull_request:
paths:
- 'openfasoc/common/**'
- 'openfasoc/generators/common/**'
- 'openfasoc/generators/cryo-gen/**'
workflow_dispatch:
jobs:
cryoGenerator:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [sky130hd, sky130hs, sky130hvl]
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Test ${{ matrix.platform }} Cryo Gen
env:
IMAGE_NAME: msaligane/openfasoc:stable
run: |
cd $GITHUB_WORKSPACE
touch file.log
docker run --rm \
-v $PWD:$PWD\
-w $PWD\
$IMAGE_NAME\
bash -c "\
cp ./.github/scripts/parse_rpt.py ./openfasoc/generators/cryo-gen/. &&\
pip3 install -r requirements.txt &&\
cd ./openfasoc/generators/cryo-gen &&\
make ${{ matrix.platform }}_cryo &&\
python3 parse_rpt.py ${{ matrix.platform }}
" && exit_code=$? | tee -a file.log
if [ $? -ne 0 ]; then exit 1; fi
if grep "^Error" file.log; then exit 1; else exit 0; fi