Skip to content

Windows Cmake

Windows Cmake #823

Workflow file for this run

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