@@ -191,3 +191,52 @@ jobs:
191191 run : make -C regression/verilog test-z3
192192 - name : Print ccache stats
193193 run : ccache -s
194+
195+ # This job takes approximately 1 minute
196+ check-ubuntu-22_04-nuterm :
197+ runs-on : ubuntu-22.04
198+ steps :
199+ - uses : actions/checkout@v3
200+ with :
201+ submodules : recursive
202+ - name : Fetch dependencies
203+ env :
204+ # This is needed in addition to -yq to prevent apt-get from asking for
205+ # user input
206+ DEBIAN_FRONTEND : noninteractive
207+ run : |
208+ sudo apt-get update
209+ sudo apt-get install --no-install-recommends -yq gcc g++ ccache cmake
210+ - name : Prepare ccache
211+ uses : actions/cache@v3
212+ with :
213+ path : .ccache
214+ key : ${{ runner.os }}-22.04-nuterm-${{ github.ref }}-${{ github.sha }}-PR
215+ restore-keys : |
216+ ${{ runner.os }}-22.04-nuterm-${{ github.ref }}
217+ ${{ runner.os }}-22.04-nuterm
218+ - name : ccache environment
219+ run : |
220+ echo "CCACHE_BASEDIR=$PWD" >> $GITHUB_ENV
221+ echo "CCACHE_DIR=$PWD/.ccache" >> $GITHUB_ENV
222+ - name : Zero ccache stats and limit in size
223+ run : ccache -z --max-size=500M
224+ - name : Get pytorch
225+ run : |
226+ cd src/nuterm
227+ wget -q https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.1.2%2Bcpu.zip
228+ unzip -q *.zip
229+ - name : Build with cmake
230+ run : |
231+ cd src/nuterm
232+ LIBTORCH=`pwd`/libtorch
233+ mkdir build
234+ cd build
235+ cmake -DCMAKE_PREFIX_PATH=$LIBTORCH -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ..
236+ cmake --build . --config Release
237+ - name : Run the unit tests
238+ run : src/nuterm/build/pytorch_tests
239+ - name : Run the system tests
240+ run : make -C regression/nuterm
241+ - name : Print ccache stats
242+ run : ccache -s
0 commit comments