mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-14 13:15:14 +03:00
Windows build fixes.
This commit is contained in:
76
.github/workflows/eepp-windows-build-check.yml
vendored
76
.github/workflows/eepp-windows-build-check.yml
vendored
@@ -1,36 +1,40 @@
|
||||
name: Windows
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
Windows:
|
||||
runs-on: windows-latest
|
||||
env:
|
||||
MSBUILD_PATH: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.ref }}
|
||||
fetch-depth: 2
|
||||
- name: Checkout submodules
|
||||
run: |
|
||||
git submodule update --init --recursive
|
||||
- name: Install dependencies
|
||||
shell: powershell
|
||||
run: |
|
||||
Invoke-WebRequest -Uri "https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-windows.zip" -OutFile "premake-5.0.0-beta2-windows.zip"
|
||||
Expand-Archive -DestinationPath . -Path premake-5.0.0-beta2-windows.zip
|
||||
- name: Create project
|
||||
shell: powershell
|
||||
run: |
|
||||
./premake5.exe --windows-vc-build vs2022
|
||||
- name: Build
|
||||
shell: cmd
|
||||
run: |
|
||||
"%MSBUILD_PATH%\MSBuild.exe" .\make\windows\eepp.sln -m /p:Platform="x64" /p:Configuration="release"
|
||||
- name: Unit Tests
|
||||
shell: cmd
|
||||
run: |
|
||||
cd bin\unit_tests
|
||||
./eepp-unit_tests.exe
|
||||
name: Windows
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
Windows:
|
||||
runs-on: windows-latest
|
||||
env:
|
||||
MSBUILD_PATH: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\
|
||||
steps:
|
||||
- name: Configure Git
|
||||
shell: cmd
|
||||
run: |
|
||||
git config --system core.autocrlf false
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.ref }}
|
||||
fetch-depth: 2
|
||||
- name: Checkout submodules
|
||||
run: |
|
||||
git submodule update --init --recursive
|
||||
- name: Install dependencies
|
||||
shell: powershell
|
||||
run: |
|
||||
Invoke-WebRequest -Uri "https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-windows.zip" -OutFile "premake-5.0.0-beta2-windows.zip"
|
||||
Expand-Archive -DestinationPath . -Path premake-5.0.0-beta2-windows.zip
|
||||
- name: Create project
|
||||
shell: powershell
|
||||
run: |
|
||||
./premake5.exe --windows-vc-build vs2022
|
||||
- name: Build
|
||||
shell: cmd
|
||||
run: |
|
||||
"%MSBUILD_PATH%\MSBuild.exe" .\make\windows\eepp.sln -m /p:Platform="x64" /p:Configuration="release"
|
||||
- name: Unit Tests
|
||||
shell: cmd
|
||||
run: |
|
||||
cd bin\unit_tests
|
||||
./eepp-unit_tests.exe
|
||||
|
||||
Reference in New Issue
Block a user