Skip to content

Commit

Permalink
[CI] Use Jarod42/install-premake5@v1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 committed Aug 7, 2024
1 parent 665867c commit de05407
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/premake5-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,12 @@ jobs:
with:
submodules: recursive

- name: checkout premake5
uses: actions/checkout@v4
with:
repository: premake/premake-core
path: premake-build
- name: install premake5
uses: Jarod42/install-premake5@v1

- 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 premake-build/bin/release/premake5.exe ./
- name: Retrieve CrashRpt_v.1.4.3_r1645
run: |
curl -o CrashRpt_v.1.4.3_r1645.7z -L https://kumisystems.dl.sourceforge.net/project/crashrpt/CrashRpt_v.1.4.3_r1645.7z
Expand Down
13 changes: 2 additions & 11 deletions .github/workflows/release-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,12 @@ jobs:
with:
submodules: recursive

- name: checkout premake5
uses: actions/checkout@v4
with:
repository: premake/premake-core
path: premake-build
- name: install premake5
uses: Jarod42/install-premake5@v1

- 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 premake-build/bin/release/premake5.exe ./
- name: Retrieve CrashRpt_v.1.4.3_r1645
run: |
curl -o CrashRpt_v.1.4.3_r1645.7z -L https://kumisystems.dl.sourceforge.net/project/crashrpt/CrashRpt_v.1.4.3_r1645.7z
Expand Down

0 comments on commit de05407

Please sign in to comment.