Skip to content

fix: tweaked sorter thread idle loop #9

fix: tweaked sorter thread idle loop

fix: tweaked sorter thread idle loop #9

name: Build (Windows Clang)
on:
push:
branches:
- main
paths-ignore:
- '**/README.md'
- '.github/workflows/windows-build-msvc.yml'
- '.github/workflows/windows-build-msys2.yml'
pull_request:
branches:
- main
jobs:
build-msvc:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
build_type: ["Release"]
cmake_generator: ["Ninja"]
shared_libs_enabled: ["ON", "OFF"]
config:
- {
os: windows-latest,
cc: "clang-cl",
cxx: "clang-cl",
arch: "x64",
cmake-arch-args: ""
}
- {
os: windows-latest,
cc: "clang",
cxx: "clang++",
arch: "x64",
cmake-arch-args: ""
}
steps:
- uses: actions/checkout@v4
- name: Set reusable strings
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}\build" >> "$GITHUB_OUTPUT"
- name: Install Ninja
run: |
choco install ninja
shell: bash
- name: Configure CMake
run: >
cmake
-G ${{ matrix.cmake_generator }}
-S ${{ github.workspace }}
-B ${{ steps.strings.outputs.build-output-dir }}
${{ matrix.config.cmake-arch-args }}
-DCMAKE_C_COMPILER=${{ matrix.config.cc }}
-DCMAKE_CXX_COMPILER=${{ matrix.config.cxx }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DBUILD_SHARED_LIBS=${{ matrix.shared_libs_enabled }}
- name: Build
run: >
cmake
--build ${{ steps.strings.outputs.build-output-dir }}
--config ${{ matrix.build_type }}
- name: Upload Build Artifact
if: matrix.shared_libs_enabled == 'OFF'
uses: actions/upload-artifact@v4
with:
name: windows-(${{ matrix.config.cxx }})-${{ matrix.config.arch }}
path: '${{ steps.strings.outputs.build-output-dir }}'
if-no-files-found: error
compression-level: 9