17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 05:09:20 +02:00

Enhance Windows build matrix with AVX2 variants

This commit is contained in:
maj00r
2026-09-20 15:14:36 +02:00
committed by GitHub
parent 1d9c608396
commit 2acc8213ef

View File

@@ -28,9 +28,20 @@ jobs:
# ============================================================ # ============================================================
windows: windows:
name: Windows x64 / MSVC name: Windows x64 / MSVC / ${{ matrix.variant.name }}
runs-on: windows-2022 runs-on: windows-2022
strategy:
fail-fast: false
matrix:
variant:
- name: "AVX2"
suffix: "avx2"
cmake_flags: ""
- name: "No AVX2"
suffix: "noavx2"
cmake_flags: "-DENABLE_AVX2=OFF"
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v6 uses: actions/checkout@v6
@@ -74,11 +85,13 @@ jobs:
$pythonRoot = Split-Path $pythonExe $pythonRoot = Split-Path $pythonExe
Write-Host "Python root: $pythonRoot" Write-Host "Python root: $pythonRoot"
Write-Host "Extra CMake flags: ${{ matrix.variant.cmake_flags }}"
cmake -S . -B build ` cmake -S . -B build `
-G "Visual Studio 17 2022" ` -G "Visual Studio 17 2022" `
-A x64 ` -A x64 `
"-DPython3_ROOT_DIR=$pythonRoot" "-DPython3_ROOT_DIR=$pythonRoot" `
${{ matrix.variant.cmake_flags }}
- name: Build - name: Build
shell: pwsh shell: pwsh
@@ -106,7 +119,7 @@ jobs:
- name: Upload Windows build - name: Upload Windows build
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: maszyna-windows-x64-${{ env.CONFIG_WIN }} name: maszyna-windows-x64-${{ matrix.variant.suffix }}-${{ env.CONFIG_WIN }}
path: | path: |
build/bin/${{ env.CONFIG_WIN }}/ build/bin/${{ env.CONFIG_WIN }}/
if-no-files-found: error if-no-files-found: error
@@ -115,7 +128,7 @@ jobs:
- name: Upload Windows debug symbols - name: Upload Windows debug symbols
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: maszyna-windows-x64-symbols-${{ env.CONFIG_WIN }} name: maszyna-windows-x64-symbols-${{ matrix.variant.suffix }}-${{ env.CONFIG_WIN }}
path: | path: |
build/pdb/${{ env.CONFIG_WIN }}/*.pdb build/pdb/${{ env.CONFIG_WIN }}/*.pdb
build/bin/${{ env.CONFIG_WIN }}/*.map build/bin/${{ env.CONFIG_WIN }}/*.map