Skip to content

[WIP] Test vs_per_file_cdialect #144

[WIP] Test vs_per_file_cdialect

[WIP] Test vs_per_file_cdialect #144

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'
- 'projects/**/unsupported_by_premake5_vs2022'
pull_request:
paths:
- 'projects/project-*/**'
- '.github/workflows/premake5-windows-msvc-2022.yml'
- '!**/*.md'
- '!projects/**/unsupported_by_*'
- '!**/premake4.lua'
- 'projects/**/unsupported_by_vs2022'
- 'projects/**/unsupported_by_premake5_vs2022'
jobs:
windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: checkout premake5
uses: actions/checkout@v4
with:
repository: Jarod42/premake-core
path: premake-build
ref: vs_per_file_cdialect
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- 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