Windows Release Build #5
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: "Windows Release Build" | |
on: | |
workflow_dispatch: | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
buildWindows: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- run: mkdir ${{github.workspace}}/build | |
- name: Configure CMake | |
run: cmake -G "Visual Studio 17 2022" -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build wxUiEditor | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target wxUiEditor | |
- name: Create Windows Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: WindowsExecutable | |
path: | | |
build/bin/Release/wxUiEditor.exe | |
- name: Generate Test Code | |
run: | | |
cd ${{github.workspace}}/codegen_test | |
${{github.workspace}}/build/bin/Release/wxUiEditor.exe --gen_cpp codegen_test.wxui | |
- name: Configure Codegen CMake | |
run: | | |
cd ${{github.workspace}}/codegen_test | |
cmake -G "Visual Studio 17 2022" -B ${{github.workspace}}/codegen_test/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build codegen_test | |
run: | | |
cd ${{github.workspace}}/codegen_test | |
cmake --build ${{github.workspace}}/codegen_test/build --config ${{env.BUILD_TYPE}} --target check_build |