Skip to content

Add crashRpt in CI. #61

Add crashRpt in CI.

Add crashRpt in CI. #61

name: premake5-windows
on:
workflow_dispatch:
push:
paths:
- 'src/**'
- '.github/workflows/premake5-windows.yml'
- 'premake5.lua'
pull_request:
paths:
- 'src/**'
- '.github/workflows/premake5-windows.yml'
- 'premake5.lua'
jobs:
windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: checkout premake5
uses: actions/checkout@v3
with:
repository: premake/premake-core
path: premake-build
- 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 premake-build/bin/release/premake5.exe ./
- name: Retrieve CrashRpt_v.1.4.3_r1645
run: |
curl -o CrashRpt_v.1.4.3_r1645.7z https://sourceforge.net/projects/crashrpt/files/CrashRpt_v.1.4.3_r1645.7z/download
7z x CrashRpt_v.1.4.3_r1645.7z -o CrashRpt_v.1.4.3_r1645
cp CrashRpt_v.1.4.3_r1645/bin/CrashRpt1403.dll data/
cp CrashRpt_v.1.4.3_r1645/bin/CrashSender1403.exe data/
cp CrashRpt_v.1.4.3_r1645/lang_files/*.ini data/CrashRpt/
- name: run premake5
run: ./premake5.exe vs2022 --to=solution/vs2022/maxr --crashRpt_root=CrashRpt_v.1.4.3_r1645
- name: build
run: |
cd solution/vs2022/maxr
nuget install packages.config -OutputDirectory packages
msbuild.exe /property:Configuration=Release Maxr.sln
- name: run tests
run: |
cd solution/vs2022/maxr/bin/Release
./maxr_tests.exe
- name: upload maxr
uses: actions/upload-artifact@v3
with:
name: maxr
path: |
data/**.exe
data/**.dll