-
Notifications
You must be signed in to change notification settings - Fork 11
69 lines (57 loc) · 1.96 KB
/
linux_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
name: Linux
on:
pull_request:
branches: [master]
workflow_run:
workflows: [Build Dependencies on Linux]
types:
- completed
env:
BUILD_TYPE: Debug
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linux-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Dependency Cache
uses: actions/cache@v3
id: cache-dependencies
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 build \
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-D VIENNALS_BUILD_TESTS=ON
- name: Build Tests
run: cmake --build build
- name: Run Tests
working-directory: ${{github.workspace}}/build
# Run all tests that are not labeled as benchmark
run: ctest -E "Benchmark|Performance"
- 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-linux
linux-python:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Dependency Cache
uses: actions/cache@v3
id: cache-dependencies
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