From 694abf7c2aaf9cf836498153f43ffcca7bd66cf5 Mon Sep 17 00:00:00 2001 From: Christian Grasser Date: Sun, 28 May 2023 10:38:30 +0200 Subject: [PATCH] Remove appveyor build and use github CI action instead Close #15 --- .github/dependabot.yml | 13 +++++++ .github/workflows/CI_build.yml | 44 ++++++++++++++++++++++++ appveyor.yml | 63 ---------------------------------- 3 files changed, 57 insertions(+), 63 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/CI_build.yml delete mode 100644 appveyor.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..2d01d71 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,13 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" diff --git a/.github/workflows/CI_build.yml b/.github/workflows/CI_build.yml new file mode 100644 index 0000000..7326253 --- /dev/null +++ b/.github/workflows/CI_build.yml @@ -0,0 +1,44 @@ +name: CI_build + +on: [push, pull_request] + +jobs: + build: + + runs-on: windows-latest + strategy: + matrix: + build_configuration: [Release, Debug] + build_platform: [x64, Win32, ARM64] + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v1 + + - name: MSBuild of plugin dll + working-directory: vs.proj\ + run: msbuild NppPluginConverter.vcxproj /m /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}" + + - name: Archive artifacts for x64 + if: matrix.build_platform == 'x64' && matrix.build_configuration == 'Release' + uses: actions/upload-artifact@v3 + with: + name: plugin_dll_x64 + path: bin64\NppConverter.dll + + - name: Archive artifacts for Win32 + if: matrix.build_platform == 'Win32' && matrix.build_configuration == 'Release' + uses: actions/upload-artifact@v3 + with: + name: plugin_dll_x86 + path: bin\NppConverter.dll + + - name: Archive artifacts for ARM64 + if: matrix.build_platform == 'ARM64' && matrix.build_configuration == 'Release' + uses: actions/upload-artifact@v3 + with: + name: plugin_dll_arm64 + path: arm64\NppConverter.dll diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index ac39c78..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,63 +0,0 @@ -version: 4.3 {build} -image: Visual Studio 2017 - - -environment: - matrix: - - PlatformToolset: v141 - -platform: - - x64 - - Win32 - - arm64 - -configuration: - - Release - - Debug - -install: - - if "%platform%"=="x64" set archi=amd64 - - if "%platform%"=="x64" set platform_input=x64 - - - if "%platform%"=="Win32" set archi=x86 - - if "%platform%"=="Win32" set platform_input=Win32 - - - if "%platform%"=="arm64" set archi=amd64_arm64 - - if "%platform%"=="arm64" set platform_input=arm64 - - - if "%PlatformToolset%"=="v141" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi% - - if "%PlatformToolset%"=="v142" call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi% - -build_script: - - cd "%APPVEYOR_BUILD_FOLDER%"\vs.proj - - msbuild NppPluginConverter.vcxproj /m /p:configuration="%configuration%" /p:platform="%platform_input%" /p:PlatformToolset="%PlatformToolset%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" - -after_build: - - cd "%APPVEYOR_BUILD_FOLDER%" - - ps: >- - $NppPluginConverterFileName = "NppConverter.$env:PLATFORM_INPUT.$env:CONFIGURATION.$env:PLATFORMTOOLSET.dll" - - if ($env:PLATFORM_INPUT -eq "x64" -and $env:CONFIGURATION -eq "Release") { - Push-AppveyorArtifact "bin64\NppConverter.dll" -FileName "$NppPluginConverterFileName" - } - - if ($env:PLATFORM_INPUT -eq "x64" -and $env:CONFIGURATION -eq "Debug") { - Push-AppveyorArtifact "vs.proj\x64\Debug\NppConverter.dll" -FileName "$NppPluginConverterFileName" - } - - if ($env:PLATFORM_INPUT -eq "Win32" -and $env:CONFIGURATION -eq "Release") { - Push-AppveyorArtifact "bin\NppConverter.dll" -FileName "$NppPluginConverterFileName" - } - - if ($env:PLATFORM_INPUT -eq "Win32" -and $env:CONFIGURATION -eq "Debug") { - Push-AppveyorArtifact "vs.proj\Debug\NppConverter.dll" -FileName "$NppPluginConverterFileName" - } - - if ($env:PLATFORM_INPUT -eq "arm64" -and $env:CONFIGURATION -eq "Release") { - Push-AppveyorArtifact "arm64\NppConverter.dll" -FileName "$NppPluginConverterFileName" - } - - if ($env:PLATFORM_INPUT -eq "arm64" -and $env:CONFIGURATION -eq "Debug") { - Push-AppveyorArtifact "vs.proj\ARM64\Debug\NppConverter.dll" -FileName "$NppPluginConverterFileName" - } -