Skip to content

add ubuntu CI checks #24

add ubuntu CI checks

add ubuntu CI checks #24

Workflow file for this run

name: Ubuntu
on:
- pull_request
- push
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# ghc: [ "9.6", "9.8", "9.10" ]
ghc: [ "9.10" ]
name: GHC ${{ matrix.ghc }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup GHC
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: 3.6.0.0
- name: Install dependencies
run: |
sudo apt install -y libhdf5-dev gfortran
wget https://github.com/TREX-CoE/trexio/releases/download/v2.5.0/trexio-2.5.0.tar.gz
tar -xvf trexio-2.5.0.tar.gz
cd trexio-2.5.0
./configure
make -j
sudo make install
find /usr/local -name "libtrexio.so"
- name: Build trexio-hs
run: |
cabal build --extra-lib-dirs=/usr/local/lib --extra-include-dirs=/usr/local/include -v
cabal test