-
Notifications
You must be signed in to change notification settings - Fork 11
33 lines (33 loc) · 1.12 KB
/
build_windows.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
name: Build Windows
on: [workflow_call, workflow_dispatch]
jobs:
build_windows:
timeout-minutes: 30
strategy:
matrix:
build-type: [MinSizeRel, Debug]
preset: [win-x86] ## cocos does not support x64
runs-on: windows-latest
steps:
- uses: actions/checkout@v3 ## only used for its github action scripts, vcpkg is what pulls it in as an actual dependency
with:
repository: heroiclabs/nakama-cpp
path: nakama-cpp
ref: 4c38c7ba0a4656fb148806a189a0c34c63f3d773
- uses: actions/checkout@v3
with:
path: nakama-cocos2d-x
- uses: ./nakama-cpp/.github/actions/setup-vcpkg
with:
github_token: ${{ secrets.github_token }}
vcpkg-path: vcpkg
- uses: ./nakama-cpp/.github/actions/build-library-and-upload
with:
nakama-cpp-path: nakama-cocos2d-x
preset: ${{ matrix.preset }}
build-type: ${{ matrix.build-type }}
- if: failure()
uses: ./nakama-cpp/.github/actions/handle-failure
with:
nakama-cpp-path: nakama-cocos2d-x
vcpkg-path: vcpkg