-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (30 loc) · 910 Bytes
/
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
name: Build My First Game
on: push
jobs:
build:
name: ${{ matrix.platform.name }}
strategy:
fail-fast: false
matrix:
platform:
- { name: 'Linux (x64)' ,os: ubuntu-20.04 }
- { name: 'Windows (x64)' ,os: windows-2022 }
- { name: 'MacOS (Universal)' ,os: macos-12 }
runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v3
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.23.x'
- name: Use cmake
run: cmake --version
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.platform.name }}
path: build/bin/*