-
Notifications
You must be signed in to change notification settings - Fork 11
70 lines (56 loc) · 2.21 KB
/
windows_test.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
63
64
65
66
67
68
69
70
name: Windows
on:
pull_request:
branches: [master]
workflow_run:
workflows: [Build Dependencies on Windows]
types:
- completed
env:
BUILD_TYPE: Debug
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
windows-test:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Restore build cache
uses: actions/cache@v3
id: viennals-dependency-cache
with:
key: viennals-dependency-cache-${{ runner.os }}-${{env.BUILD_TYPE}}-${{ hashFiles( './external/upstream/**CMakeLists.txt' ) }}
path: ${{github.workspace}}/dependencies/Install
- name: Configure
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DVIENNALS_BUILD_TESTS=ON
- name: Build
run: cmake --build ${{github.workspace}}/build
- name: Add VTK to PATH
run: echo "${{github.workspace}}\dependencies\Install\vtk_external\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Run Tests
working-directory: ${{github.workspace}}/build
# Run all tests except those that are labeled as benchmark
run: ctest -LE "^benchmark$" -j 2 --output-on-failure --timeout 1800 -C ${{env.BUILD_TYPE}}
- name: Trigger Action on ViennaPS Repository
if: ${{ vars.TRIGGER_VIENNAPS == 'true' && github.event_name != 'schedule' && github.event_name != 'pull_request' }}
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.PAT_VIENNAPS }}
repository: ${{github.repository_owner}}/ViennaPS
event-type: viennals-update-windows
windows-python:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Restore build cache
uses: actions/cache@v3
id: viennals-dependency-cache
with:
key: viennals-dependency-cache-${{ runner.os }}-${{env.BUILD_TYPE}}-${{ hashFiles( './external/upstream/**CMakeLists.txt' ) }}
path: ${{github.workspace}}/dependencies/Install
- name: Build and install Python module
shell: bash
run: pip3 install --user . -v