-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (34 loc) · 904 Bytes
/
build.yml
File metadata and controls
44 lines (34 loc) · 904 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
41
42
43
44
name: CI
on:
push:
pull_request:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Setup CMake
uses: lukka/get-cmake@latest
- name: Create build directory
run: mkdir build
- name: Configure CMake
run: cmake -B build -S .
- name: Build
run: cmake --build build --parallel 4 --config Release
- name: Upload artifacts (Linux)
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: dumpsource2-linux
path: build/DumpSource2-*
- name: Upload artifacts (Windows)
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v4
with:
name: dumpsource2-windows
path: build/Release/DumpSource2-*.exe