-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (50 loc) · 1.58 KB
/
premake5-windows-cmake.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
55
56
57
58
59
name: premake5-windows-cmake
on:
workflow_dispatch:
push:
paths:
- 'projects/project-*/**'
- '.github/workflows/premake5-windows-cmake.yml'
- '.github/actions/install-premake5/action.yml'
- '!**/*.md'
- '!projects/**/unsupported_by_*'
- '!**/premake4.lua'
- 'projects/**/unsupported_by_cmake'
- 'projects/**/unsupported_by_cmake_windows'
- 'projects/**/unsupported_by_premake5_cmake'
- 'submodules/premake-cmake'
pull_request:
paths:
- 'projects/project-*/**'
- '.github/workflows/premake5-windows-cmake.yml'
- '.github/actions/install-premake5/action.yml'
- '!**/*.md'
- '!projects/**/unsupported_by_*'
- '!**/premake4.lua'
- 'projects/**/unsupported_by_cmake'
- 'projects/**/unsupported_by_cmake_windows'
- 'projects/**/unsupported_by_premake5_cmake'
- 'submodules/premake-cmake'
jobs:
windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: install premake5
uses: ./.github/actions/install-premake5
with:
msdev: vs2022
repository: premake/premake-core
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: cmake --version
run: cmake --version
- name: add premake cmake module
run: |
echo "require 'submodules/premake-cmake/cmake'" >> premake-system.lua
- name: test projects
run: PATH=$PATH:`pwd` python3 ./test_projects.py premake5 projects cmake --shell=posix
shell: bash