forked from Grumpfy/jthread
-
Notifications
You must be signed in to change notification settings - Fork 2
125 lines (119 loc) · 4.18 KB
/
integrate.yaml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
name: Integration
on:
pull_request:
branches:
- '**'
- '!gh-pages'
push:
branches:
- '**'
- '!gh-pages'
defaults:
run:
shell: bash
jobs:
skip_check:
name: Skip Run Check
continue-on-error: true
runs-on: ubuntu-22.04
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
is_not_release: ${{ steps.release_check.outputs.is_not_release }}
steps:
- name: Check if duplicate action
id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
skip_after_successful_duplicate: 'true'
paths_ignore: '["**/README.md", ".idea/**", ".editorconfig", ".git*", "docs/**", ".github/**", "**/Doxyfile"]'
- name: Full checkout
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Check if should be release / has version tag
id: release_check
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
run: |
git describe --exact-match --match='v*' --abbrev=0 --tags ${{ github.sha }} 2>/dev/null \
|| echo "::set-output name=is_not_release::true"
linux:
name: Linux
needs: skip_check
if: ${{ (needs.skip_check.outputs.should_skip != 'true') && (needs.skip_check.outputs.is_not_release == 'true') }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Configure
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
- name: Make
working-directory: build
run: cmake --build .
- name: Test
working-directory: build
run: ctest --build-config Release --output-on-failure
- uses: actions/upload-artifact@v3
name: Artifact
with:
name: jthread-linux-glibc
path: |
build/test_*
build/Testing/Temporary/LastTest.log
if-no-files-found: error
macos:
name: Mac
needs: skip_check
if: ${{(needs.skip_check.outputs.should_skip != 'true') && (needs.skip_check.outputs.is_not_release == 'true') }}
runs-on: macos-12
env:
CMAKE_OSX_ARCHITECTURES: x86_64;arm64
steps:
- uses: actions/checkout@v2
- name: Configure
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
- name: Make
working-directory: build
run: cmake --build .
- name: Test
working-directory: build
run: ctest --build-config Release --output-on-failure
- uses: actions/upload-artifact@v3
name: Artifact
with:
name: jthread-macos
path: |
build/test_*
build/Testing/Temporary/LastTest.log
if-no-files-found: error
windows:
name: Windows
needs: skip_check
if: ${{ (needs.skip_check.outputs.should_skip != 'true') && (needs.skip_check.outputs.is_not_release == 'true') }}
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
- name: Configure
run: |
mkdir build
cd build
cmake .. -G "Visual Studio 17 2022" -DCMAKE_CONFIGURATION_TYPES=Release -DSafeShm_SKIP_BENCH=ON
- name: Make
working-directory: build
run: cmake --build . --config Release
- name: Test
working-directory: build
run: ctest --build-config Release --output-on-failure
- uses: actions/upload-artifact@v3
name: Artifact
with:
name: jthread-win-x64
path: |
build/Release/test_*
build/Release/Testing/Temporary/LastTest.log
if-no-files-found: error