Skip to content

Commit

Permalink
Test Codelite on windows with msc.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 committed Aug 25, 2023
1 parent 999e7b7 commit cd04c45
Show file tree
Hide file tree
Showing 3 changed files with 424 additions and 1 deletion.
66 changes: 66 additions & 0 deletions .github/workflows/premake5-windows-codelite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: premake5-windows-codelite

on:
workflow_dispatch:
push:
paths:
- 'projects/project-*/**'
- 'codelite/**'
- '.github/workflows/premake5-windows-codelite.yml'
- '!**/*.md'
- '!projects/**/unsupported_by_*'
- '!**/premake4.lua'
- 'projects/**/unsupported_by_codelite'

pull_request:
paths:
- 'projects/project-*/**'
- 'codelite/**'
- '.github/workflows/premake5-windows-codelite.yml'
- '!**/*.md'
- '!projects/**/unsupported_by_*'
- '!**/premake4.lua'
- 'projects/**/unsupported_by_codelite'

jobs:
windows:
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: checkout premake5
uses: actions/checkout@v3
with:
repository: Jarod42/premake-core
path: premake-build
ref: codelite-msc

- name: Add msbuild to PATH
uses: microsoft/[email protected]

- 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: install codelite
timeout-minutes: 5 # Ensure silent mode is correct (no blocking dialog)
run: |
curl --output codelite-setup.exe https://downloads.codelite.org/downloads.php?windows_weekly_64
# curl --output codelite-setup.exe https://downloads.codelite.org/downloads.php?windows_64
./codelite-setup.exe /SILENT /SP- /SUPPRESSMSGBOXES /NOICONS /NORESTART
# needed?
# - name: Add cl.exe to PATH # microsoft/setup-msbuild doesn't add it :(
# uses: ilammy/msvc-dev-cmd@v1

- 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
echo $PATH
ls -la "/c/Program Files/Codelite"
"/c/Program Files/Codelite/codelite-make.exe" --help2 || echo "FAIL"
PATH=$PATH:"/c/Program Files/Codelite":`pwd` python3 ./test_projects.py premake5 projects codelite --cc=msc-v143
shell: bash
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Sample projects for integration testing [premake4/premake5](https://premake.gith

||gmake|gmake2|Codelite|Msvc vs2019|Msvc vs2022|xcode4|CodeBlocks|CMake|Ninja|
|:---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
||![Premake5 ubuntu gmake badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-ubuntu-gmake/badge.svg)|![Premake5 ubuntu gmake badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-ubuntu-gmake2/badge.svg)|![Premake5 ubuntu codelite badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-ubuntu-codelite/badge.svg)|![Premake5 windows msvc badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-windows-msvc-2019/badge.svg)|![Premake5 windows msvc badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-windows-msvc-2022/badge.svg)|![Premake5 windows msvc badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-mac-xcode4/badge.svg)|![Premake5 ubuntu codeblocks badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-ubuntu-codeblocks/badge.svg)|![Premake5 ubuntu cmake badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-ubuntu-cmake/badge.svg)|![Premake5 ubuntu ninja badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-ubuntu-ninja/badge.svg)![Premake5 window ninja badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-windows-ninja/badge.svg)|
||![Premake5 ubuntu gmake badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-ubuntu-gmake/badge.svg)|![Premake5 ubuntu gmake badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-ubuntu-gmake2/badge.svg)|![Premake5 ubuntu codelite badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-ubuntu-codelite/badge.svg)![Premake5 windows codelite badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-windows-codelite/badge.svg)|![Premake5 windows msvc badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-windows-msvc-2019/badge.svg)|![Premake5 windows msvc badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-windows-msvc-2022/badge.svg)|![Premake5 windows msvc badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-mac-xcode4/badge.svg)|![Premake5 ubuntu codeblocks badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-ubuntu-codeblocks/badge.svg)|![Premake5 ubuntu cmake badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-ubuntu-cmake/badge.svg)|![Premake5 ubuntu ninja badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-ubuntu-ninja/badge.svg)![Premake5 window ninja badge](https://github.com/Jarod42/premake-sample-projects/workflows/premake5-windows-ninja/badge.svg)|
|[`location`](https://premake.github.io/docs/location)|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:[^project_location]|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|
|[`targetdir`](https://premake.github.io/docs/targetdir)|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|
|[`targetname`](https://premake.github.io/docs/targetname)|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|
Expand Down
Loading

0 comments on commit cd04c45

Please sign in to comment.