-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (45 loc) · 1.57 KB
/
premake5-windows-msvc-2022.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
51
52
53
54
name: premake5-windows-msvc-2022
on:
workflow_dispatch:
push:
paths:
- 'projects/project-*/**'
- '.github/workflows/premake5-windows-msvc-2022.yml'
- '!**/*.md'
- '!projects/**/unsupported_by_*'
- '!**/premake4.lua'
- 'projects/**/unsupported_by_vs2022'
pull_request:
paths:
- 'projects/project-*/**'
- '.github/workflows/premake5-windows-msvc-2022.yml'
- '!**/*.md'
- '!projects/**/unsupported_by_*'
- '!**/premake4.lua'
- 'projects/**/unsupported_by_vs2022'
jobs:
windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: checkout premake5
uses: actions/checkout@v3
with:
repository: premake/premake-core
path: premake-build
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1.3
- name: Build premake5
run: |
$vcvarall_path = vswhere -find VC\Auxiliary\Build\vcvarsall.bat
cmd.exe /c "call ""$vcvarall_path"" x86_amd64 && cd premake-build && nmake -f Bootstrap.mak MSDEV=vs2022 windows-msbuild PLATFORM=Win32 CONFIG=release && cp bin/release/premake5.exe ../"
- name: test projects (default=msc)
run: |
#"C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
PATH=$PATH:`pwd` python3 ./test_projects.py premake5 projects vs2022
shell: bash
- name: test projects (clang)
run: |
PATH=$PATH:`pwd` python3 ./test_projects.py premake5 projects vs2022 --cc=clang
shell: bash