[CI] Update actions to last versions: #129
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: premake/premake-core | |
path: premake-build | |
- 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 |