Profiling changes #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: develop | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ develop ] | |
pull_request: | |
branches: [ develop ] | |
jobs: | |
debug: | |
runs-on: [ self-hosted, windows ] | |
name: "Build and Test (Debug)" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Premake | |
uses: abel0b/setup-premake@v2.3 | |
with: | |
version: "5.0.0-beta2" | |
path: Vendor/Premake/Bin | |
- name: Setup MSBuild | |
uses: microsoft/setup-msbuild@v1.3.1 | |
- name: Run Premake | |
run: .\Vendor\Premake\Bin\Premake5.exe vs2022 | |
- name: "Build" | |
run: msbuild /m /p:Configuration=Debug EppoEngine.sln | |
- name: "Test" | |
run: .\Bin\Debug-windows-x86_64\EppoTesting\EppoTesting.exe --gtest_output="xml:${{env.RUNNER_TEMP}}\testoutput.xml" | |
- name: "Save test output" | |
uses: actions/upload-artifact@v3 | |
with: | |
name: TestOutput-Debug | |
path: ${{env.RUNNER_TEMP}}/testoutput.xml | |
release: | |
runs-on: [ self-hosted, windows ] | |
name: "Build and Test (Release)" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Premake | |
uses: abel0b/setup-premake@v2.3 | |
with: | |
version: "5.0.0-beta2" | |
path: Vendor/Premake/Bin | |
- name: Setup MSBuild | |
uses: microsoft/setup-msbuild@v1.3.1 | |
- name: Run Premake | |
run: .\Vendor\Premake\Bin\Premake5.exe vs2022 | |
- name: "Build" | |
run: msbuild /m /p:Configuration=Release EppoEngine.sln | |
- name: "Test" | |
run: .\Bin\Release-windows-x86_64\EppoTesting\EppoTesting.exe --gtest_output="xml:${{env.RUNNER_TEMP}}\testoutput.xml" | |
- name: "Save test output" | |
uses: actions/upload-artifact@v3 | |
with: | |
name: TestOutput-Release | |
path: ${{env.RUNNER_TEMP}}/testoutput.xml | |
dist: | |
runs-on: [ self-hosted, windows ] | |
name: "Build and Test (Dist)" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Premake | |
uses: abel0b/setup-premake@v2.3 | |
with: | |
version: "5.0.0-beta2" | |
path: Vendor/Premake/Bin | |
- name: Setup MSBuild | |
uses: microsoft/setup-msbuild@v1.3.1 | |
- name: Run Premake | |
run: .\Vendor\Premake\Bin\Premake5.exe vs2022 | |
- name: "Build" | |
run: msbuild /m /p:Configuration=Dist EppoEngine.sln | |
- name: "Test" | |
run: .\Bin\Dist-windows-x86_64\EppoTesting\EppoTesting.exe --gtest_output="xml:${{env.RUNNER_TEMP}}\testoutput.xml" | |
- name: "Save test output" | |
uses: actions/upload-artifact@v3 | |
with: | |
name: TestOutput-Dist | |
path: ${{env.RUNNER_TEMP}}/testoutput.xml |