From 2efc1a6030afc7c711ebbef739b5415871e1b568 Mon Sep 17 00:00:00 2001 From: ge0rdi Date: Mon, 3 Jan 2022 11:29:51 +0100 Subject: [PATCH 1/2] Create msbuild.yml --- .github/workflows/msbuild.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/msbuild.yml diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml new file mode 100644 index 000000000..8cb75a320 --- /dev/null +++ b/.github/workflows/msbuild.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: + - master + paths: + - 'Src/**' + - 'Localization/**' + pull_request: + branches: + - master + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + + - name: Build + run: Src\Setup\__MakeFinal.bat + + - uses: actions/upload-artifact@v3 + with: + name: OpenShellSetup + path: Src/Setup/Final/OpenShellSetup_*.exe + + - uses: actions/upload-artifact@v3 + with: + name: Symbols + path: Src/Setup/Final/OpenShellPDB_*.7z From f4e2cde32d5da7e31f603baeb1acfca698cee4b3 Mon Sep 17 00:00:00 2001 From: ge0rdi Date: Sun, 11 Sep 2022 16:07:42 +0200 Subject: [PATCH 2/2] test --- Src/Setup/__MakeFinal.bat | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Src/Setup/__MakeFinal.bat b/Src/Setup/__MakeFinal.bat index 16bcdf1e4..2e2d32aa7 100644 --- a/Src/Setup/__MakeFinal.bat +++ b/Src/Setup/__MakeFinal.bat @@ -13,7 +13,16 @@ if defined APPVEYOR_BUILD_VERSION ( set CS_VERSION=%APPVEYOR_BUILD_VERSION% ) +if defined GITHUB_ACTIONS ( + for /f "tokens=1,2,3 delims=.v" %%i in ('git describe --tags origin/master') do ( + setlocal EnableDelayedExpansion + set /a NEXT_BUILD=%%k+1 + set CS_VERSION=%%i.%%j.!NEXT_BUILD! + ) +) + echo Version: %CS_VERSION% +exit /b 0 rem Convert . to _ set CS_VERSION_STR=%CS_VERSION:.=_%