forked from dealii/dealii
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (59 loc) · 1.73 KB
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: github-windows
on: [push, pull_request]
jobs:
windows-serial:
# Serial build on Windows
name: Windows Serial
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-2019, windows-2016]
steps:
- uses: actions/checkout@v2
- name: info
run: |
cmake --version
wmic logicaldisk get size, freespace, caption
- name: configure
shell: bash
run: |
mkdir build
mkdir c:/project
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=c:/project -DDEAL_II_WITH_ZLIB=off -DDEAL_II_CXX_FLAGS="-WX" -T host=x64 ..
- name: archive logs
uses: actions/upload-artifact@v1
with:
name: windows-serial-detailed.log
path: build/detailed.log
- name: build library
shell: bash
run: |
cmake --build build --target install -- -m
cd c:/project
7z a dealii-windows.zip *
- name: test library
if: matrix.os != 'windows-2016' #TODO: For windows-2016 this step does not terminate (12.12.2020)
shell: bash
run: |
cmake --build build --target test -- -m
- name: archive library
uses: actions/upload-artifact@v1
with:
name: dealii-windows.zip
path: c:/project/dealii-windows.zip
- name: archive error 1
uses: actions/upload-artifact@v1
if: always()
continue-on-error: true
with:
name: windows-serial-CMakeOutput.log
path: build/CMakeFiles/CMakeOutput.log
- name: archive error 2
uses: actions/upload-artifact@v1
if: always()
continue-on-error: true
with:
name: windows-serial-CMakeError.log
path: build/CMakeFiles/CMakeError.log