-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.43 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build
on:
push:
tags:
- 'v*'
branches:
- main
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ubuntu, macos, windows]
config: [debug, release]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install system packages
uses: ConorMacBride/install-package@v1
with:
apt: libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev pkg-config libgl1-mesa-dev libx11-dev libxrandr-dev
brew: pkg-config
- name: Install CMake
uses: lukka/get-cmake@latest
- name: Install dependencies
uses: lukka/run-vcpkg@v11
with:
vcpkgConfigurationJsonGlob: "vcpkg-configuration.json"
- name: Run CMake and run vcpkg to build packages
uses: lukka/run-cmake@v10
with:
configurePreset: "${{ matrix.os }}-${{ matrix.config }}"
buildPreset: "${{ matrix.os }}-${{ matrix.config }}"
packagePreset: "${{ matrix.os }}-${{ matrix.config }}"
- name: Release
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/v') && matrix.config == 'release'
with:
draft: true
files: "out/build/${{ matrix.os }}-${{ matrix.config }}/dist/*"
fail_on_unmatched_files: true
generate_release_notes: true