Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Archive repo

Archive repo #42

Workflow file for this run

name: Windows
on: [push, pull_request]
env:
SCCACHE_DIR: ${{ github.workspace }}/.cache/sccache
jobs:
vs2019:
strategy:
fail-fast: false
matrix:
build_type: [Debug, Release]
runs-on: windows-latest
env:
CXX: ${{ matrix.compiler }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Cache dependencies
uses: actions/cache@v2
env:
cache-name: cache-deps
with:
path: .cache/deps
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/ThirdPartyDeps.cmake') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Cache build
uses: actions/cache@v2
env:
cache-name: cache-build
with:
path: .cache/sccache
key: ${{ runner.os }}-build-${{ env.cache-name }}
- name: Install sccache
run: choco install sccache
- run: cmake -E make_directory build
- shell: bash
working-directory: build/
run: cmake $GITHUB_WORKSPACE -G "Visual Studio 16 2019"
- working-directory: build/
run: cmake --build . --config ${{ matrix.build_type }}
- working-directory: build/
run: ctest -C ${{ matrix.build_type }} --output-on-failure
vs2019-clang:
strategy:
fail-fast: false
matrix:
build_type: [Debug, Release]
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Cache dependencies
uses: actions/cache@v2
env:
cache-name: cache-deps
with:
path: .cache/deps
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/ThirdPartyDeps.cmake') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Cache build
uses: actions/cache@v2
env:
cache-name: cache-build
with:
path: .cache/sccache
key: ${{ runner.os }}-build-${{ env.cache-name }}
- name: Install sccache
run: choco install sccache
- run: cmake -E make_directory build
- shell: bash
working-directory: build/
run: cmake $GITHUB_WORKSPACE -G "Visual Studio 16 2019" -T ClangCL
- working-directory: build/
run: cmake --build . --config ${{ matrix.build_type }}
- working-directory: build/
run: ctest -C ${{ matrix.build_type }} --output-on-failure
vs2017:
strategy:
fail-fast: false
matrix:
visual_studio:
- 'Visual Studio 15 2017'
- 'Visual Studio 15 2017 Win64'
build_type: [Debug, Release]
runs-on: windows-2016
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Cache dependencies
uses: actions/cache@v2
env:
cache-name: cache-deps
with:
path: .cache/deps
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/ThirdPartyDeps.cmake') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Cache build
uses: actions/cache@v2
env:
cache-name: cache-build
with:
path: .cache/sccache
key: ${{ runner.os }}-build-${{ env.cache-name }}
- name: Install sccache
run: choco install sccache
- run: cmake -E make_directory build
- shell: bash
working-directory: build/
run: cmake $GITHUB_WORKSPACE -G "${{ matrix.visual_studio }}"
- working-directory: build/
run: cmake --build . --config ${{ matrix.build_type }}
- working-directory: build/
run: ctest -C ${{ matrix.build_type }} --output-on-failure