Skip to content

Commit

Permalink
Add tests on Windows Server
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Bock <[email protected]>
  • Loading branch information
nicolasbock committed Jul 12, 2021
1 parent 7810b92 commit d065f5b
Show file tree
Hide file tree
Showing 3 changed files with 42 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_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
Expand Down
16 changes: 16 additions & 0 deletions scripts/ci-windows-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
7 changes: 7 additions & 0 deletions scripts/prepare-container-windows.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -e -u -x

choco install \
cmake \
llvm

0 comments on commit d065f5b

Please sign in to comment.