-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2257b62
commit 6cba05d
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
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: | ||
DM_MQUEUE_SKIP: 1 | ||
DM_PIPE_SKIP: 1 | ||
GCC_V: 13 | ||
NO_COLOR: 1 | ||
|
||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install Dependencies (Linux) | ||
if: contains(matrix.os, 'ubuntu') | ||
run: | | ||
sudo apt list --installed | ||
sudo apt update | ||
sudo apt-get remove -y sqlite3 libsqlite3-dev | ||
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 | ||
- name: Build and Install SQLite 3 (Linux) | ||
if: contains(matrix.os, 'ubuntu') | ||
run: | | ||
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 | ||
- name: Build and Test (Linux) | ||
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" | ||
sh runtests.sh |