From bf0f77ee278319e74f0c7ec06fbf798d10521e5d Mon Sep 17 00:00:00 2001 From: Freddie <69014593+FrederoxDev@users.noreply.github.com> Date: Sun, 28 Jul 2024 13:19:10 +0100 Subject: [PATCH] build test --- .github/workflows/build.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c40326c9..88f4add4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,14 +40,34 @@ jobs: run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" - git add $env:FILE_PATH git commit -m "Bump version to $env:NEW_VERSION" git push - env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - shell: pwsh + - name: Setup Visual studio + uses: microsoft/setup-msbuild@v2 + - name: Build AmethystRuntime + run: | + mkdir build + cd build + cmake -DCI_CD_BUILD=ON .. + msbuild Amethyst.sln + + - name: Package Build + run: | + $version = $env:NEW_VERSION + $sourcePath = "dist/AmethystRuntime@$version" + $zipPath = "dist/AmethystRuntime@$version.zip" + + if (-Not (Test-Path -Path $sourcePath)) { + Write-Error "Source path does not exist: $sourcePath" + exit 1 + } + + Add-Type -AssemblyName System.IO.Compression.FileSystem + [System.IO.Compression.ZipFile]::CreateFromDirectory($sourcePath, $zipPath) + shell: pwsh