diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index f81679f70..c508e9aff 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -43,6 +43,25 @@ jobs: - name: Build docs run: ./build.sh --debug docs + build_windows: + name: Build and test the library on Windows Server (${{ matrix.JOBNAME }}) + runs-on: windows-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 diff --git a/scripts/ci-windows-gcc-4.8-test-1.sh b/scripts/ci-windows-gcc-4.8-test-1.sh new file mode 100755 index 000000000..d5fdb4282 --- /dev/null +++ b/scripts/ci-windows-gcc-4.8-test-1.sh @@ -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 diff --git a/scripts/prepare-container-windows.sh b/scripts/prepare-container-windows.sh new file mode 100755 index 000000000..e802cb89e --- /dev/null +++ b/scripts/prepare-container-windows.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +set -e -u -x + +choco install \ + cmake \ + llvm