-
Notifications
You must be signed in to change notification settings - Fork 30
28 lines (25 loc) · 948 Bytes
/
build.yml
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
on: [push, pull_request]
jobs:
build:
if: ${{github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)}}
runs-on: windows-2022
strategy:
matrix:
arch: [x64, Win32]
include:
- arch: x64
triplet: x64-windows
- arch: Win32
triplet: x86-windows
steps:
- name: Checkout
uses: actions/[email protected]
- name: Build
run: |
cmake -B build-${{matrix.arch}} -A ${{matrix.arch}} -DCMAKE_BUILD_TYPE=Release -DCMAKE_UNITY_BUILD=ON -DVCPKG_TARGET_TRIPLET=${{matrix.triplet}}
cmake --build build-${{matrix.arch}} --config Release --parallel
- name: Upload artifacts
uses: actions/[email protected]
with:
name: ${{github.event.repository.name}}-${{matrix.arch}}
path: build-${{matrix.arch}}/Release/*