summaryrefslogtreecommitdiff
path: root/.github/workflows/windows-compile.yml
blob: 519259aef3a86ea64ceb67c7eea854b10968b6a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Windows Validation

on:
  pull_request:
    branches: [ "*" ]

jobs:
  build:
    runs-on: windows-2022
    strategy:
      matrix:
        config: [Release, Debug]
        arch: [x64, Win32]
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
          fetch-tags: true
          submodules: recursive
      - name: Build
        run: |
          cmake -S . -B "build/x64" -G "Visual Studio 17 2022" -T v143 -A ${{ matrix.arch }} -DCMAKE_BUILD_TYPE=${{ matrix.config }}
          cmake --build ./build/x64 --config ${{ matrix.config }} --parallel 10
      - name: Upload build
        uses: actions/upload-artifact@v4
        with:
          name: spaghetti-windows-${{ matrix.arch }}-${{ matrix.config }}
          path: ./build/x64/${{ matrix.config }}
          retention-days: 1