-
Notifications
You must be signed in to change notification settings - Fork 15
51 lines (51 loc) · 1.5 KB
/
build.yaml
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
45
46
47
48
49
50
51
name: Linux/Windows Build
run-name: ${{ github.actor }} is building splatapult
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install System Packages
uses: ConorMacBride/install-package@v1
with:
apt: libgl-dev libxcb-glx0-dev libglu1-mesa-dev libxxf86vm-dev libxrandr-dev
- name: Install CMake
uses: lukka/get-cmake@latest
- name: Install Vcpkg Packages
uses: lukka/run-vcpkg@v11
with:
vcpkgJsonGlob: 'vcpkg.json'
- name: Configure and Build
uses: lukka/run-cmake@v10
with:
configurePreset: 'make-vcpkg'
buildPreset: 'make-vcpkg-release'
build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Get Microsoft Visual Studio for C++
uses: ilammy/msvc-dev-cmd@v1
- name: Install CMake
uses: lukka/get-cmake@latest
- name: Install Vcpkg Packages
uses: lukka/run-vcpkg@v11
with:
vcpkgJsonGlob: 'vcpkg.json'
- name: Configure and Build
uses: lukka/run-cmake@v10
with:
configurePreset: 'msvc-vcpkg'
buildPreset: 'msvc-vcpkg-release'
- name: Upload Artifiacts
uses: actions/upload-artifact@v4
with:
name: windows-build
path: builds/msvc-vcpkg/Release