-
Notifications
You must be signed in to change notification settings - Fork 205
40 lines (32 loc) · 1019 Bytes
/
Copy pathci.yml
File metadata and controls
40 lines (32 loc) · 1019 Bytes
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
30
31
32
33
34
35
36
37
38
39
40
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
# Cancel previous runs on the same PR / branch when new commits arrive.
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build (${{ matrix.config }})
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
config: [Release, Debug]
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- name: Configure
run: cmake -S src -B build -G "Ninja Multi-Config"
- name: Build ${{ matrix.config }}
run: cmake --build build --config ${{ matrix.config }}
- name: Upload artifacts
if: success()
uses: actions/upload-artifact@v4
with:
name: OpenSteamTool-${{ matrix.config }}-pr${{ github.event.pull_request.number || github.run_number }}
path: build/${{ matrix.config }}/
retention-days: 7