-
Notifications
You must be signed in to change notification settings - Fork 110
47 lines (43 loc) · 1.66 KB
/
glayout_opamp_sim.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Opamp spice testbench
on:
push:
branches:
- main
pull_request:
paths:
- 'openfasoc/common/**'
- 'openfasoc/generators/common/**'
- 'openfasoc/generators/glayout/**'
workflow_dispatch:
jobs:
glayout_sky130:
runs-on: ubuntu-latest
steps:
- name: Remove unnecessary files
run: |
du . -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
du . -h
- name: Checkout repo
uses: actions/checkout@v4
- name: Opamp Parametric sims
env:
IMAGE_NAME: msaligane/openfasoc:stable
run: |
cd $GITHUB_WORKSPACE
touch glayout.log
docker run --rm \
-v $PWD:$PWD \
-w $PWD \
$IMAGE_NAME \
bash -c "\
cp ./.github/scripts/test_glayout_ci.py ./openfasoc/generators/glayout/tapeout/tapeout_and_RL/. &&\
pip3 uninstall glayout -y &&\
cd ./openfasoc/generators/glayout/tapeout/tapeout_and_RL/ &&\
pip3 install -r requirements.txt &&\
pip3 install --force-reinstall -r ./../../requirements.txt &&\
python3 test_glayout_ci.py --component opamp_parametric
" && exit_code=$? | tee -a glayout.log
if [ $? -ne 0 ]; then exit 1; fi
if grep "\[ERROR\]" glayout.log; then exit 1; else exit 0; fi