-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (76 loc) · 2.57 KB
/
build.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
name: Build and Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-22.04 ]
env:
GCC_V: 13
NO_COLOR: 1
steps:
- name: Checkout Source Code
uses: actions/checkout@v3
with:
submodules: recursive
- name: List Packages
if: contains(matrix.os, 'ubuntu')
run: |
sudo apt list --installed
- name: Install Packages
if: contains(matrix.os, 'ubuntu')
run: |
sudo apt update
sudo apt-get install -y gcc-${GCC_V} gfortran-${GCC_V} make pkg-config
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V}
sudo apt-get install -y --no-install-recommends libblas-dev liblapack-dev \
curl libcurl4 libcurl4-openssl-dev libfcgi-bin libfcgi-dev gnuplot-nox \
libhdf5-103-1 libhdf5-dev lua5.4 liblua5.4 liblua5.4-dev libpcre2-8-0 \
libpcre2-dev zlib1g zlib1g-dev
sudo apt-get remove -y sqlite3 libsqlite3-dev
- name: Build and Install SQLite 3
if: contains(matrix.os, 'ubuntu')
run: |
cd /tmp/
git config --global url.https://github.com/.insteadOf git://github.com/
git clone --depth 1 https://github.com/sqlite/sqlite.git
cd sqlite/
./configure
sudo make install
/usr/local/bin/sqlite3 --version
- name: Build and Install Zstandard
if: contains(matrix.os, 'ubuntu')
run: |
cd /tmp/
git config --global url.https://github.com/.insteadOf git://github.com/
git clone --depth 1 https://github.com/facebook/zstd.git
cd zstd/build/cmake/
mkdir build && cd build/
cmake ..
cmake --build . --config Release
sudo cmake --install . --prefix /usr/local
/usr/local/bin/zstd --version
- name: Configure System
if: contains(matrix.os, 'ubuntu')
run: |
sudo sysctl fs.mqueue.msg_max=100
sudo sysctl fs.mqueue.msgsize_max=16384
alias gnuplot="gnuplot-nox"
gnuplot --version
- name: Build and Test
if: contains(matrix.os, 'ubuntu')
run: |
which gfortran
gfortran --version
which gcc
gcc --version
make all OS=linux PREFIX=/usr/local RELEASE="-g -O0 -Wall -fmax-errors=1" \
LIBSQLITE3="-Wl,-rpath,/usr/local/lib -lsqlite3" \
LIBZSTD="-Wl,-rpath,/usr/local/lib -lzstd"
sh runtests.sh