Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Windows CI #61

Merged
merged 5 commits into from
Jan 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/ci_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI_windows

on: [push, pull_request]

env:
CI: "ON"

jobs:
Build:
runs-on: windows-latest
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v1

- run: cmake -G "MinGW Makefiles" -DCMAKE_SH="CMAKE_SH-NOTFOUND" -Wdev -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_Fortran_FLAGS_DEBUG="-Wall -Wextra -Wimplicit-interface -fPIC -g -fcheck=all -fbacktrace"

env:
FC: gfortran
CC: gcc
CXX: g++

- name: CMake build
run: cmake --build build --parallel

- run: cmake --build build --verbose --parallel 1
if: failure()

- name: CTest
run: ctest --output-on-failure --parallel -V
working-directory: build

- uses: actions/upload-artifact@v1
if: failure()
with:
name: WindowsCMakeTestlog
path: build/Testing/Temporary/LastTest.log
6 changes: 3 additions & 3 deletions src/tests/loadtxt/test_loadtxt.f90
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ program test_loadtxt

real(sp), allocatable :: s(:, :)
real(dp), allocatable :: d(:, :)
real(qp), allocatable :: q(:, :)
!real(qp), allocatable :: q(:, :)

call loadtxt("array1.dat", s)
call print_array(s)
Expand All @@ -22,8 +22,8 @@ program test_loadtxt
call loadtxt("array4.dat", d)
call print_array(d)

call loadtxt("array4.dat", q)
call print_array(q)
!call loadtxt("array4.dat", q)
!call print_array(q)

contains

Expand Down
2 changes: 1 addition & 1 deletion src/tests/loadtxt/test_savetxt.f90
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ program test_loadtxt

call test_sp(outpath)
call test_dp(outpath)
call test_qp(outpath)
!call test_qp(outpath)

contains

Expand Down