-
Notifications
You must be signed in to change notification settings - Fork 252
39 lines (30 loc) · 954 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
29
30
31
32
33
34
35
36
37
38
39
name: Descent 3 Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [{runner: windows-latest, preset: win}, {runner: macos-latest, preset: mac}]
build_type: [Debug, Release]
runs-on: ${{ matrix.os.runner }}
steps:
- uses: actions/checkout@v4
- name: Install macOS dependencies
if: ${{ matrix.os.preset == 'mac' }}
run: |
# Install packages from Homebrew
brew bundle install
- name: Configure CMake
run: cmake --preset ${{matrix.os.preset}} -B ${{github.workspace}}/build
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}}
- name: 'Upload Artifacts'
uses: actions/upload-artifact@v4
with:
name: build_${{matrix.build_type}}
path: ${{github.workspace}}/build/Descent3/${{matrix.build_type}}