Added sensor control section. #175
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
name: Build and Test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build-and-test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-24.04 ] | |
env: | |
GCC_V: 14 | |
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-get 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 libcurl4t64 libcurl4-openssl-dev libfcgi-bin libfcgi-dev gnuplot-nox \ | |
libhdf5-103-1t64 libhdf5-dev lua5.4 liblua5.4 liblua5.4-dev libmodbus5 \ | |
libmodbus-dev libpcre2-8-0 libpcre2-dev sqlite3 libsqlite3-0 libsqlite3-dev \ | |
zlib1g zlib1g-dev libzstd1 libzstd-dev | |
- 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 | |
sqlite3 --version | |
make build OS=linux PREFIX=/usr/local RELEASE="-g -O0 -Wall -fmax-errors=1" | |
sh runtests.sh |