-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (46 loc) · 1.39 KB
/
windows_cmake.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
name: Windows Cmake
'on':
workflow_dispatch:
inputs:
extra_resolve_options:
description: Extra Resolve Options
required: false
schedule:
- cron: 0 1 * * *
push:
branches:
- master
pull_request:
env:
EXTRA_RESOLVE_OPTIONS: ${{ github.event.inputs.extra_resolve_options }}
jobs:
windows_cmake:
timeout-minutes: 45
strategy:
fail-fast: false
runs-on: [self-hosted, windows, cmake, builder]
name: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: CMake Cleanup
run: cmake -E remove_directory ${{github.workspace}}/build
- name: CMake Setup
run: cmake -E make_directory ${{github.workspace}}/build
- name: CMake Configure
env:
GIT_SSH_COMMAND: "${{ 'ssh -i /home/buildbot/.ssh/id_ed25519 -o IdentitiesOnly=yes' }}"
uses: nick-fields/retry@v2
with:
max_attempts: 3
timeout_minutes: 15
command: cd build | cmake ${{github.workspace}} -DSTEINWURF_RESOLVE_OPTIONS="--git_protocol=git@ $EXTRA_RESOLVE_OPTIONS"
- name: CMake Build
working-directory: ${{github.workspace}}/build
run: cmake --build . -j
- name: CTest
working-directory: ${{github.workspace}}/build
run: ctest -V
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true