From 8f5686fb10e4d42de224c5938a5c0d64a63ae8d1 Mon Sep 17 00:00:00 2001 From: OFreddy <35624593+OFreddy@users.noreply.github.com> Date: Sun, 16 Feb 2025 17:02:44 +0100 Subject: [PATCH] Generated branch with isolated build action --- .github/workflows/build.yml | 55 +++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..3c602d234 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,55 @@ +# This is a basic workflow that is automatically triggered + +name: Build Solution + +# Controls when the action will run. Workflow runs when push or pull to main branch + +on: + push: + branches: + - main + pull_request: + branches: + - main + +env: + OPENSAL_BUILD_DIR: ${{ github.workspace }}\build\ + __your_choice: 8 + +jobs: + build: + runs-on: windows-latest + defaults: + run: + shell: pwsh + + steps: + - name: Checkout source + uses: actions/checkout@v4 + + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v2 + + - name: echo MSBuild + run: msbuild -version + + - name: Build + run: | + cd ${{ github.workspace }}\src\vcxproj + .\rebuild.cmd + +# - name: Populate build +# run: | +# cd ${{ github.workspace }}\src\vcxproj +# .\!populate_build_dir.cmd + + - name: Zip artifact for deployment + run: | + zip release.zip ${{ github.workspace }}\salamander\* -r + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v4 + with: + name: salamander + path: release.zip +