Skip to content

Bump Jarod42/install-premake5 from 1 to 2 in the github-actions group #202

Bump Jarod42/install-premake5 from 1 to 2 in the github-actions group

Bump Jarod42/install-premake5 from 1 to 2 in the github-actions group #202

name: premake5-windows
on:
workflow_dispatch:
push:
paths:
- 'resinstaller/**'
- 'src/**'
- 'submodules/**'
- 'test/**'
- '.github/workflows/premake5-windows.yml'
- 'premake5.lua'
pull_request:
paths:
- 'resinstaller/**'
- 'src/**'
- 'submodules/**'
- 'test/**'
- '.github/workflows/premake5-windows.yml'
- 'premake5.lua'
jobs:
windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: install premake5
uses: Jarod42/install-premake5@v2
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- 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
7z x -o"./CrashRpt_v.1.4.3_r1645" "CrashRpt_v.1.4.3_r1645.7z" "lib/*.*" "include/*.*" "bin/CrashRpt1403.dll" "bin/CrashSender1403.exe" "bin/crashrpt_lang.ini"
7z e -o"data/CrashRpt" CrashRpt_v.1.4.3_r1645.7z "lang_files/*.ini"
- name: run premake5
run: premake5.exe vs2022 --to=solution/vs2022 --crashRpt_root=CrashRpt_v.1.4.3_r1645
- name: build
run: |
cd solution/vs2022
nuget install packages.config -OutputDirectory packages
msbuild.exe /property:Configuration=Release Maxr.sln
- name: run tests
run: |
cd solution/vs2022/bin/Release
./maxr_tests.exe
- name: upload maxr
uses: actions/upload-artifact@v4
with:
name: maxr
path: |
data/**.exe
data/**.dll
data/**.pdb
solution/vs2022/bin/Release/**.pdb