From db4cc383d4d5abccb0e2b85007a719b617c9e6f6 Mon Sep 17 00:00:00 2001 From: Daniel Dada Date: Mon, 15 Dec 2025 11:31:30 +0300 Subject: [PATCH] ci: test windows installer --- .github/workflows/Test NSIS.yml | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/Test NSIS.yml diff --git a/.github/workflows/Test NSIS.yml b/.github/workflows/Test NSIS.yml new file mode 100644 index 0000000..61214b2 --- /dev/null +++ b/.github/workflows/Test NSIS.yml @@ -0,0 +1,38 @@ +name: Build NSIS Installer + +on: + push: + branches: [ "master" ] + pull_request: + +jobs: + build-windows: + runs-on: windows-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v6 + + - name: Install NSIS + run: choco install nsis --no-progress -y + + - name: Install CMake + run: choco install cmake --no-progress -y + + - name: Setup MSVC (Visual Studio Build Tools) + uses: microsoft/setup-msbuild@v2 + + - name: Configure project + run: cmake -B build -S . -A x64 + + - name: Build project + run: cmake --build build --config Release + + - name: Generate NSIS installer + run: cmake --build build --config Release --target package + + - name: Upload installer + uses: actions/upload-artifact@v6 + with: + name: clrsync-installer + path: build/*.exe