From 7cee85c27330d29218a47c7d4e36ccb91ec63ec3 Mon Sep 17 00:00:00 2001 From: Derick Payne Date: Sun, 18 Jan 2026 21:59:34 +0200 Subject: [PATCH] ci: Add GitHub Actions CI workflow alongside AppVeyor --- .github/workflows/build.yml | 48 +++++++++++++++++++++++++++++++++++++ Readme.md | 3 ++- 2 files changed, 50 insertions(+), 1 deletion(-) 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..d7565b31b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,48 @@ +name: Build + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build: + name: ${{ matrix.platform }} ${{ matrix.configuration }} + runs-on: windows-2022 + + strategy: + fail-fast: false + matrix: + platform: [Win32, x64] + configuration: [Release] + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup MSBuild + uses: microsoft/setup-msbuild@v2 + + - name: Setup NuGet + uses: nuget/setup-nuget@v2 + + - name: Restore NuGet packages + run: nuget restore Notepad3.sln -Verbosity detailed + + - name: Generate version + shell: pwsh + run: | + & "${{ github.workspace }}\Version.ps1" + + - name: Build + run: msbuild Notepad3.sln /m /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }} /v:minimal + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: Notepad3-${{ matrix.platform }}-${{ matrix.configuration }} + path: bin/**/*.exe + retention-days: 30 diff --git a/Readme.md b/Readme.md index 31b635cdb..1daf17810 100644 --- a/Readme.md +++ b/Readme.md @@ -1,6 +1,7 @@ # Notepad3 -[![Build status](https://img.shields.io/appveyor/ci/rizonesoft/notepad3/master.svg?style=flat-square)](https://ci.appveyor.com/project/rizonesoft/notepad3/branch/master) +[![AppVeyor](https://img.shields.io/appveyor/ci/rizonesoft/notepad3/master.svg?style=flat-square&label=AppVeyor)](https://ci.appveyor.com/project/rizonesoft/notepad3/branch/master) +[![GitHub Actions](https://img.shields.io/github/actions/workflow/status/rizonesoft/Notepad3/build.yml?style=flat-square&label=GitHub%20Actions)](https://github.com/rizonesoft/Notepad3/actions/workflows/build.yml) [![Latest Release](https://img.shields.io/github/v/release/rizonesoft/Notepad3?style=flat-square&label=Release)](https://rizonesoft.com/downloads/notepad3/) [![Repo Size](https://img.shields.io/github/repo-size/rizonesoft/Notepad3?style=flat-square)](https://github.com/rizonesoft/Notepad3) [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg?style=flat-square)](https://opensource.org/licenses/BSD-3-Clause)