Skip to content

Prefer the 'arm64' host on ARM64 hosts (#96) #146

Prefer the 'arm64' host on ARM64 hosts (#96)

Prefer the 'arm64' host on ARM64 hosts (#96) #146

Workflow file for this run

name: Toolchain CI
on:
pull_request:
push:
branches:
- main
paths-ignore:
- '.editorconfig'
- '.vscode/**'
- '*.md'
workflow_dispatch:
jobs:
analyze:
name: Run 'cmake-lint'
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install 'cmakelang[YAML]'
shell: pwsh
run: |
& pip install cmakelang[YAML]
- name: CMake lint
shell: pwsh
run: |
& ./analyze.ps1
build:
name: Build Examples
strategy:
max-parallel: 8
fail-fast: false
matrix:
configuration: [ Debug, Release ]
buildPreset: [ windows-msvc-x64, windows-msvc-spectre-x64, windows-msvc-amd64, windows-msvc-x86, windows-msvc-arm64, windows-clang-x64, windows-clang-amd64, windows-clangcl-x64, windows-clangcl-amd64 ]
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Ninja
shell: pwsh
run: |
choco install ninja
- name: CMake Configure ${{ matrix.buildPreset }}
shell: pwsh
run: |
Set-Location ./example
cmake --preset ${{ matrix.buildPreset }}
- name: CMake Build ${{ matrix.buildPreset }}
shell: pwsh
run: |
Set-Location ./example
cmake --build --preset ${{ matrix.buildPreset }} --config ${{ matrix.configuration }}
- name: Upload output artifact
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: __output_${{ matrix.buildPreset }}_${{ matrix.configuration }}
path: |
example/__output/${{ matrix.buildPreset }}
!example/__output/${{ matrix.buildPreset }}/**/*.ilk
!example/__output/${{ matrix.buildPreset }}/**/*.obj
!example/__output/${{ matrix.buildPreset }}/**/*.pch