-
Notifications
You must be signed in to change notification settings - Fork 105
138 lines (128 loc) · 5.62 KB
/
glayout_sky130.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name: Test glayout pypi package
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: Run opamp test
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 "\
pip uninstall glayout -y &&\
cp ./.github/scripts/test_glayout_ci.py ./openfasoc/generators/glayout/. &&\
cd ./openfasoc/generators/glayout &&\
pip3 install gdsfactory==7.7.0 prettyprint prettyprinttree gdstk &&\
python3 -m pip uninstall numpy -y &&\
python3 -m pip install numpy==1.23.5 &&\
python3 test_glayout_ci.py --component opamp
" && 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
- name: Run pmos test
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 "\
pip uninstall glayout -y &&\
cp ./.github/scripts/test_glayout_ci.py ./openfasoc/generators/glayout/. &&\
cd ./openfasoc/generators/glayout &&\
pip3 install gdsfactory==7.7.0 prettyprint prettyprinttree gdstk &&\
python3 -m pip uninstall numpy -y &&\
python3 -m pip install numpy==1.23.5 &&\
python3 test_glayout_ci.py --component pmos
" && 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
- name: Run nmos test
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 "\
pip uninstall glayout -y &&\
cp ./.github/scripts/test_glayout_ci.py ./openfasoc/generators/glayout/. &&\
cd ./openfasoc/generators/glayout &&\
pip3 install gdsfactory==7.7.0 prettyprint prettyprinttree gdstk &&\
python3 -m pip uninstall numpy -y &&\
python3 -m pip install numpy==1.23.5 &&\
python3 test_glayout_ci.py --component nmos
" && 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
- name: Run differential pair test
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 "\
pip uninstall glayout -y &&\
cp ./.github/scripts/test_glayout_ci.py ./openfasoc/generators/glayout/. &&\
cd ./openfasoc/generators/glayout &&\
pip3 install gdsfactory==7.7.0 prettyprint prettyprinttree gdstk &&\
python3 -m pip uninstall numpy -y &&\
python3 -m pip install numpy==1.23.5 &&\
python3 test_glayout_ci.py --component diff_pair
" && 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
- name: Run current mirror test
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 "\
pip uninstall glayout -y &&\
cp ./.github/scripts/test_glayout_ci.py ./openfasoc/generators/glayout/. &&\
cd ./openfasoc/generators/glayout &&\
pip3 install gdsfactory==7.7.0 prettyprint prettyprinttree gdstk &&\
python3 -m pip uninstall numpy -y &&\
python3 -m pip install numpy==1.23.5 &&\
python3 test_glayout_ci.py --component current_mirror
" && 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