-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (39 loc) · 1.18 KB
/
windows-workflow.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
name: 😍 Windows
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
BUILD_CONFIGURATION: Release
jobs:
build:
strategy:
fail-fast: false
matrix:
platform: [x64]
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: submodules
run: git submodule update --init --recursive -j $(getconf _NPROCESSORS_ONLN)
- name: Setup premake
uses: abel0b/setup-premake@v1
- name: premake
run: premake5 vs2019
- name: MSBuild
uses: microsoft/setup-msbuild@v1
- name: compile
working-directory: ${{ env.GITHUB_WORKSPACE }}
run: msbuild /m /p:TrackFileAccess=false /p:Configuration=${{ env.BUILD_CONFIGURATION }} /p:Platform=${{ matrix.platform }} gfxRenderEngine.sln
- name: create artifact folder
run: New-Item -Path ".\" -Name "download-artifacts" -ItemType "directory"
shell: powershell
- name: copy compile artifacts
run: Copy "bin/Release/engine.*" "download-artifacts/"
shell: powershell
- name: upload artifacts
uses: actions/upload-artifact@v2
with:
path: download-artifacts
name: engine-windows