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 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
|
name: msolve CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
steps:
- uses: actions/checkout@v6
- name: "Install dependencies"
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
# sharutils is for uudecode
sudo apt install libgmp-dev libflint-dev libmpfr-dev libntl-dev
elif [ "$RUNNER_OS" == "macOS" ]; then
brew install autoconf automake libtool gmp flint mpfr ntl
else
echo "$RUNNER_OS not supported"
exit 1
fi
- name: autogen
run: ./autogen.sh
- name: configure
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
./configure
elif [ "$RUNNER_OS" == "macOS" ]; then
./configure LDFLAGS="-L$(brew --prefix)/lib/" \
CFLAGS="-g -O2 -I$(brew --prefix)/include/"
else
echo "$RUNNER_OS not supported"
exit 1
fi
- name: make
run: make
- name: make check
run: make check
- name: show test-suite.log if test failed
if: failure()
run: cat test-suite.log || true
- name: make distcheck
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
make distcheck
elif [ "$RUNNER_OS" == "macOS" ]; then
make distcheck LDFLAGS="-L$(brew --prefix)/lib/" \
CFLAGS="-g -O2 -I$(brew --prefix)/include/"
else
echo "$RUNNER_OS not supported"
exit 1
fi
- name: show test-suite.log if test failed
if: failure()
run: cat msolve-*/_build/sub/test-suite.log || true
build-fixed-seed:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
steps:
- uses: actions/checkout@v6
- name: "Install dependencies"
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
# sharutils is for uudecode
sudo apt install libgmp-dev libflint-dev libmpfr-dev libntl-dev
elif [ "$RUNNER_OS" == "macOS" ]; then
brew install autoconf automake libtool gmp flint mpfr ntl
else
echo "$RUNNER_OS not supported"
exit 1
fi
- name: autogen
run: ./autogen.sh
- name: configure
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
./configure
elif [ "$RUNNER_OS" == "macOS" ]; then
./configure LDFLAGS="-L$(brew --prefix)/lib/" \
CFLAGS="-g -O2 -I$(brew --prefix)/include/"
else
echo "$RUNNER_OS not supported"
exit 1
fi
- name: make
run: make
- name: make check with fixed seed
run: SEED=1617753600 make check
- name: show test-suite.log if test failed
if: failure()
run: cat test-suite.log || true
- name: make distcheck with fixed seed
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
make distcheck DISTCHECK_CONFIGURE_FLAGS="SEED=1617753600"
elif [ "$RUNNER_OS" == "macOS" ]; then
make distcheck LDFLAGS="-L$(brew --prefix)/lib/" \
CFLAGS="-g -O2 -I$(brew --prefix)/include/" \
DISTCHECK_CONFIGURE_FLAGS="SEED=1617753600"
else
echo "$RUNNER_OS not supported"
exit 1
fi
- name: show test-suite.log if test failed
if: failure()
run: cat test-suite.log || true
flintdev-assert-ntl:
name: FLINT git version, compiled with assert and NTL
runs-on: ubuntu-latest
env:
CC: "gcc"
steps:
- uses: actions/checkout@v6
- name: "Setup"
run: |
sudo apt-get install -y libgmp-dev libmpfr-dev libntl-dev autoconf libtool-bin
$CC --version
make --version
autoconf --version
libtool --version
echo "MAKE=make -j$(expr $(nproc) + 1) --output-sync=target" >> $GITHUB_ENV
- name: "Build FLINT"
run: |
git clone --depth=1 https://github.com/flintlib/flint
cd flint && ./bootstrap.sh && ./configure CC=${CC} --with-ntl --enable-assert
$MAKE && sudo make install && sudo ldconfig
- name: "Build and Test msolve"
run: |
./autogen.sh && ./configure && $MAKE && make check
- name: show test-suite.log if test failed
if: failure()
run: cat test-suite.log || true
flintdev-assert-ntl-fixed-seed:
name: FLINT git version, compiled with assert and NTL, make check with fixed seed
runs-on: ubuntu-latest
env:
CC: "gcc"
steps:
- uses: actions/checkout@v6
- name: "Setup"
run: |
sudo apt-get install -y libgmp-dev libmpfr-dev libntl-dev autoconf libtool-bin
$CC --version
make --version
autoconf --version
libtool --version
echo "MAKE=make -j$(expr $(nproc) + 1) --output-sync=target" >> $GITHUB_ENV
- name: "Build FLINT"
run: |
git clone --depth=1 https://github.com/flintlib/flint
cd flint && ./bootstrap.sh && ./configure CC=${CC} --with-ntl --enable-assert
$MAKE && sudo make install && sudo ldconfig
- name: "Build and Test msolve"
run: |
./autogen.sh && ./configure && $MAKE && SEED=1617753600 make check
- name: show test-suite.log if test failed
if: failure()
run: cat test-suite.log || true
|