Skip to content

Commit

Permalink
Add tests on OS X
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Bock <[email protected]>
  • Loading branch information
nicolasbock committed Jul 11, 2021
1 parent 7810b92 commit 29cbdfa
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,25 @@ jobs:
- name: Build docs
run: ./build.sh docs

build_osx:
name: Build and test the library on OS X (${{ matrix.JOBNAME }})
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
include:
- JOBNAME: gcc-4.8 test 1
TEST_SCRIPT: ./scripts/ci-osx-gcc-4.8-test-1.sh
steps:
- name: Check out sources
uses: actions/checkout@v2
- name: Prepare container
run: ./scripts/prepare-container-osx.sh
- name: Build and test library
env:
TEST_SCRIPT: ${{ matrix.TEST_SCRIPT || env.TEST_SCRIPT }}
run: ${TEST_SCRIPT} testing

build:
name: Build and test the library (${{ matrix.JOBNAME }})
runs-on: ubuntu-18.04
Expand Down
16 changes: 16 additions & 0 deletions scripts/ci-osx-gcc-4.8-test-1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

set -e -u -x

basedir=$(readlink --canonicalize $(dirname $0)/..)

[[ -f ${basedir}/scripts/ci-defaults.sh ]] && . ${basedir}/scripts/ci-defaults.sh

export CC=gcc-4.8
export CXX=g++-4.8
export FC=gfortran-4.8
export BUILD_SHARED_LIBS=yes
export BML_OPENMP=no
export BML_INTERNAL_BLAS=no

${basedir}/build.sh testing
11 changes: 11 additions & 0 deletions scripts/prepare-container-osx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -e -u -x

SUDO=$(which sudo || true)

for i in $(seq 5); do
brew update && break
done
brew upgrade
brew search

0 comments on commit 29cbdfa

Please sign in to comment.