forked from gameguild-gg/mobagen
-
Notifications
You must be signed in to change notification settings - Fork 8
35 lines (28 loc) · 739 Bytes
/
windows.yml
File metadata and controls
35 lines (28 loc) · 739 Bytes
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
name: WINDOWS
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
BUILD_TYPE: MinSizeRel
jobs:
windows-native:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: Configure CMake
shell: cmd
run: cmake -H. -Bbuild -G "Visual Studio 16 2019" -T ClangCL -DCMAKE_BUILD_TYPE=MinSizeRel
- name: Build
shell: cmd
run: cmake --build build --config MinSizeRel
- name: Release
uses: fnkr/github-action-ghr@v1.3
if: startsWith(github.ref, 'refs/tags/')
env:
GHR_COMPRESS: zip
GHR_PATH: build/
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}