Skip to content

[module]Use latest premake-ninja (fix clang-tidy) #18

[module]Use latest premake-ninja (fix clang-tidy)

[module]Use latest premake-ninja (fix clang-tidy) #18

name: premake5-windows-ninja-core
on:
workflow_dispatch:
push:
paths:
- 'projects/**'
- '.github/workflows/premake5-windows-ninja-core.yml'
- '.github/actions/install-premake5/action.yml'
- '!**/*.md'
- '!projects/**/unsupported_by_*'
- '!**/premake4.lua'
- 'projects/**/unsupported_by_ninja'
- 'projects/**/unsupported_by_ninja_windows'
- 'projects/**/unsupported_by_premake5_ninja'
- 'submodules/premake-ninja'
pull_request:
paths:
- 'projects/**'
- '.github/workflows/premake5-windows-ninja-core.yml'
- '.github/actions/install-premake5/action.yml'
- '!**/*.md'
- '!projects/**/unsupported_by_*'
- '!**/premake4.lua'
- 'projects/**/unsupported_by_ninja'
- 'projects/**/unsupported_by_ninja_windows'
- 'projects/**/unsupported_by_premake5_ninja'
- 'submodules/premake-ninja'
jobs:
windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
- name: install premake5
uses: ./.github/actions/install-premake5
with:
repository: nickclark2016/premake-core
ref: feature/ninja-exporter
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: install ninja
uses: seanmiddleditch/gha-setup-ninja@v6
- name: ninja --version
run: ninja --version
- name: Add cl.exe to PATH # microsoft/setup-msbuild doesn't add it :(
uses: ilammy/msvc-dev-cmd@v1
# - name: test projects default(msc-v142) # Visual Studio 2019 (version mismatch is not that important, only cl.exe is called)
# run: |
# #"C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
# python3 ./test_projects.py premake5 projects ninja --scripts=`pwd` --shell=posix
# shell: bash
- name: test projects msc-v143 # Visual Studio 2022
run: |
#"C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
python3 ./test_projects.py premake5 projects ninja --scripts=`pwd` --cc=msc-v143 --shell=posix
shell: bash
# - name: test projects gcc
# run: |
# python3 ./test_projects.py premake5 projects ninja --scripts=`pwd` --cc=gcc --shell=posix
# shell: bash