Skip to content

build(deps): bump jwlawson/actions-setup-cmake from 1.13 to 2.0 #183

build(deps): bump jwlawson/actions-setup-cmake from 1.13 to 2.0

build(deps): bump jwlawson/actions-setup-cmake from 1.13 to 2.0 #183

Workflow file for this run

name: 'Windows MSVC'
on:
push:
branches:
- main
paths:
- '!docs/**'
- '!.github/workflows/**'
- '.github/workflows/Windows-MSVC.yml'
pull_request:
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- { icon: '🟨', env: Win32}
- { icon: '🟦', env: x64}
#- { icon: '🟩', env: amd64_arm}
#- { icon: 'πŸŸ₯', env: amd64_arm64}
name: '🚧 ${{ matrix.icon }} ${{ matrix.env }}'
steps:
- name: '🧰 Checkout'
uses: actions/checkout@v3
- name: 'πŸ“₯ Load .env file'
if: hashFiles('.github/workflows/.env') != ''
uses: xom9ikk/dotenv@v2
with:
path: .github/workflows
- name: '${{ matrix.icon }} Setup CMake'
uses: jwlawson/[email protected]
with:
cmake-version: '${{env.CMAKE_VERSION}}'
github-api-token: ${{ secrets.GITHUB_TOKEN }}
- name: '${{ matrix.icon }} Setup Visual Studio'
uses: ilammy/[email protected]
with:
arch: ${{ matrix.env }}
- name: '${{ matrix.icon }} Install package'
if: ${{ env.INSTALL_PACKAGES != '' }}
run: choco install ${{env.INSTALL_PACKAGES}}
- name: 'πŸ”§ Configure'
run: cmake -S ${{ github.workspace }} -B ${{ env.CMAKE_BUILD_PREFIX }} -DBUILD_TESTS=${{ env.BUILD_TESTS }} -DBUILD_DOCS=${{ env.BUILD_DOCS }} -DBUILD_EXAMPLES=${{ env.BUILD_EXAMPLES }}
- name: 'βš™οΈ Build'
run: cmake --build ${{ env.CMAKE_BUILD_PREFIX }} --config ${{ env.CMAKE_BUILD_TYPE }} --parallel ${{ env.CMAKE_NUMBER_JOBS }}
- name: 'πŸ§ͺ Run tests'
if: ${{ matrix.env != 'amd64_arm' && matrix.env != 'amd64_arm64' }}
working-directory: ${{ env.CMAKE_BUILD_PREFIX }}
run: ctest -C ${{ env.CMAKE_BUILD_TYPE }} --parallel ${{ env.CMAKE_NUMBER_JOBS_TESTS }} -VV --output-on-failure