1717 - ubuntu-latest
1818 - macos-latest
1919 steps :
20- - uses : actions/checkout@v3
20+ - uses : actions/checkout@v6
2121 - name : " Install dependencies"
2222 run : |
2323 if [ "$RUNNER_OS" == "Linux" ]; then
3636 if [ "$RUNNER_OS" == "Linux" ]; then
3737 ./configure
3838 elif [ "$RUNNER_OS" == "macOS" ]; then
39- ./configure LDFLAGS="-L$(brew --prefix)/lib/" CFLAGS="-g -O2 -I$(brew --prefix)/include/"
39+ ./configure LDFLAGS="-L$(brew --prefix)/lib/" \
40+ CFLAGS="-g -O2 -I$(brew --prefix)/include/"
4041 else
4142 echo "$RUNNER_OS not supported"
4243 exit 1
5354 if [ "$RUNNER_OS" == "Linux" ]; then
5455 make distcheck
5556 elif [ "$RUNNER_OS" == "macOS" ]; then
56- make distcheck LDFLAGS="-L$(brew --prefix)/lib/" CFLAGS="-g -O2 -I$(brew --prefix)/include/"
57+ make distcheck LDFLAGS="-L$(brew --prefix)/lib/" \
58+ CFLAGS="-g -O2 -I$(brew --prefix)/include/"
59+ else
60+ echo "$RUNNER_OS not supported"
61+ exit 1
62+ fi
63+ - name : show test-suite.log if test failed
64+ if : failure()
65+ run : cat msolve-*/_build/sub/test-suite.log || true
66+
67+ build-fixed-seed :
68+ runs-on : ${{ matrix.os }}
69+ timeout-minutes : 10
70+ strategy :
71+ fail-fast : false
72+ matrix :
73+ os :
74+ - ubuntu-latest
75+ - macos-latest
76+ steps :
77+ - uses : actions/checkout@v6
78+ - name : " Install dependencies"
79+ run : |
80+ if [ "$RUNNER_OS" == "Linux" ]; then
81+ # sharutils is for uudecode
82+ sudo apt install libgmp-dev libflint-dev libmpfr-dev libntl-dev
83+ elif [ "$RUNNER_OS" == "macOS" ]; then
84+ brew install autoconf automake libtool gmp flint mpfr ntl
85+ else
86+ echo "$RUNNER_OS not supported"
87+ exit 1
88+ fi
89+ - name : autogen
90+ run : ./autogen.sh
91+ - name : configure
92+ run : |
93+ if [ "$RUNNER_OS" == "Linux" ]; then
94+ ./configure
95+ elif [ "$RUNNER_OS" == "macOS" ]; then
96+ ./configure LDFLAGS="-L$(brew --prefix)/lib/" \
97+ CFLAGS="-g -O2 -I$(brew --prefix)/include/"
98+ else
99+ echo "$RUNNER_OS not supported"
100+ exit 1
101+ fi
102+ - name : make
103+ run : make
104+ - name : make check with fixed seed
105+ run : SEED=1617753600 make check
106+ - name : show test-suite.log if test failed
107+ if : failure()
108+ run : cat test-suite.log || true
109+ - name : make distcheck with fixed seed
110+ run : |
111+ if [ "$RUNNER_OS" == "Linux" ]; then
112+ make distcheck DISTCHECK_CONFIGURE_FLAGS="SEED=1617753600"
113+ elif [ "$RUNNER_OS" == "macOS" ]; then
114+ make distcheck LDFLAGS="-L$(brew --prefix)/lib/" \
115+ CFLAGS="-g -O2 -I$(brew --prefix)/include/" \
116+ DISTCHECK_CONFIGURE_FLAGS="SEED=1617753600"
57117 else
58118 echo "$RUNNER_OS not supported"
59119 exit 1
62122 if : failure()
63123 run : cat test-suite.log || true
64124
125+
65126 flintdev-assert-ntl :
66127 name : FLINT git version, compiled with assert and NTL
67128 runs-on : ubuntu-latest
@@ -88,3 +149,30 @@ jobs:
88149 - name : show test-suite.log if test failed
89150 if : failure()
90151 run : cat test-suite.log || true
152+
153+ flintdev-assert-ntl-fixed-seed :
154+ name : FLINT git version, compiled with assert and NTL, make check with fixed seed
155+ runs-on : ubuntu-latest
156+ env :
157+ CC : " gcc"
158+ steps :
159+ - uses : actions/checkout@v6
160+ - name : " Setup"
161+ run : |
162+ sudo apt-get install -y libgmp-dev libmpfr-dev libntl-dev autoconf libtool-bin
163+ $CC --version
164+ make --version
165+ autoconf --version
166+ libtool --version
167+ echo "MAKE=make -j$(expr $(nproc) + 1) --output-sync=target" >> $GITHUB_ENV
168+ - name : " Build FLINT"
169+ run : |
170+ git clone --depth=1 https://github.com/flintlib/flint
171+ cd flint && ./bootstrap.sh && ./configure CC=${CC} --with-ntl --enable-assert
172+ $MAKE && sudo make install && sudo ldconfig
173+ - name : " Build and Test msolve"
174+ run : |
175+ ./autogen.sh && ./configure && $MAKE && SEED=1617753600 make check
176+ - name : show test-suite.log if test failed
177+ if : failure()
178+ run : cat test-suite.log || true
0 commit comments