ci: Add GitHub Actions CI workflow alongside AppVeyor

This commit is contained in:
Derick Payne 2026-01-18 21:59:34 +02:00
parent f6d101dba8
commit 7cee85c273
2 changed files with 50 additions and 1 deletions

48
.github/workflows/build.yml vendored Normal file
View File

@ -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

View File

@ -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)