@@ -143,3 +143,52 @@ jobs:
143
143
run : make -C regression/verilog test
144
144
- name : Print ccache stats
145
145
run : ccache -s
146
+
147
+ # This job takes approximately 1 minute
148
+ check-ubuntu-22_04-nuterm :
149
+ runs-on : ubuntu-22.04
150
+ steps :
151
+ - uses : actions/checkout@v3
152
+ with :
153
+ submodules : recursive
154
+ - name : Fetch dependencies
155
+ env :
156
+ # This is needed in addition to -yq to prevent apt-get from asking for
157
+ # user input
158
+ DEBIAN_FRONTEND : noninteractive
159
+ run : |
160
+ sudo apt-get update
161
+ sudo apt-get install --no-install-recommends -yq gcc g++ ccache cmake
162
+ - name : Prepare ccache
163
+ uses : actions/cache@v3
164
+ with :
165
+ path : .ccache
166
+ key : ${{ runner.os }}-22.04-nuterm-${{ github.ref }}-${{ github.sha }}-PR
167
+ restore-keys : |
168
+ ${{ runner.os }}-22.04-nuterm-${{ github.ref }}
169
+ ${{ runner.os }}-22.04-nuterm
170
+ - name : ccache environment
171
+ run : |
172
+ echo "CCACHE_BASEDIR=$PWD" >> $GITHUB_ENV
173
+ echo "CCACHE_DIR=$PWD/.ccache" >> $GITHUB_ENV
174
+ - name : Zero ccache stats and limit in size
175
+ run : ccache -z --max-size=500M
176
+ - name : Get pytorch
177
+ run : |
178
+ cd src/nuterm
179
+ wget -q https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.1.2%2Bcpu.zip
180
+ unzip -q *.zip
181
+ - name : Build with cmake
182
+ run : |
183
+ cd src/nuterm
184
+ LIBTORCH=`pwd`/libtorch
185
+ mkdir build
186
+ cd build
187
+ cmake -DCMAKE_PREFIX_PATH=$LIBTORCH -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ..
188
+ cmake --build . --config Release
189
+ - name : Run the unit tests
190
+ run : src/nuterm/build/pytorch_tests
191
+ - name : Run the system tests
192
+ run : make -C regression/nuterm
193
+ - name : Print ccache stats
194
+ run : ccache -s
0 commit comments