From e09b0928cf5d3719fdf314faa2a9b940ce4187bb Mon Sep 17 00:00:00 2001 From: Christian Grasser Date: Sat, 17 Oct 2026 19:37:37 +0200 Subject: [PATCH] initial GH action CI build without automatic release step --- .github/dependabot.yml | 13 +++++++ .github/workflows/CI_build.yml | 62 ++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/CI_build.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..abbd7e7 --- /dev/null +++ b/.github/workflows/CI_build.yml @@ -0,0 +1,62 @@ +name: CI_build + +on: [push, pull_request] + +jobs: + build: + + runs-on: windows-latest + env: + Projectname: NppMenuScripts + strategy: + fail-fast: false + matrix: + include: + - msys: UCRT64 + env: ucrt-x86_64 + arch: x86_64 + configuration: Release + compiler: gcc + - msys: UCRT64 + env: ucrt-x86_64 + arch: x86_64 + configuration: Debug + compiler: gcc + + steps: + - name: Checkout repo + uses: actions/checkout@v7 + + - name: Install and update MSYS2 tools + uses: msys2/setup-msys2@v2 + with: + msystem: ${{ matrix.msys }} + install: mingw-w64-${{ matrix.env }}-${{ matrix.compiler }} mingw-w64-${{ matrix.env }}-make + update: true + release: false + + - name: Build of plugin dll + working-directory: .\ + run: | + Write-host "${{ matrix.msys }}" + Write-host "${{ matrix.configuration }}" + $Env:MSYSTEM = '${{ matrix.msys }}' + $Env:Path = 'C:\msys64\usr\bin' + [IO.Path]::PathSeparator + $Env:Path + $Env:Path = 'C:\msys64\' + '${{ matrix.msys }}'.ToLower() + '\bin' + [IO.Path]::PathSeparator + $Env:Path + if ( $${{ matrix.configuration == 'Debug'}} ) {$Env:DEBUG = '1'} + Write-Output "Tools version:" + Write-Output (((${{ matrix.compiler }} --version) | select-object -first 1) + " " + (${{ matrix.compiler }} -dumpmachine)) + Write-Output (mingw32-make --version) | select-object -first 1 + Write-Output (sh --version) | select-object -first 1 + .\get-cjson.bat + .\build-x64.bat + + - name: zip artifacts for ${{ matrix.msys }} / ${{ matrix.configuration }} + run: | + 7z a ${{ env.Projectname }}_${{ matrix.arch }}_${{ matrix.configuration }}.zip .\build\${{ env.Projectname }}.dll + + - name: Archive artifacts for Release ${{ matrix.arch }} + uses: actions/upload-artifact@v7 + with: + name: ${{ env.Projectname }}_${{ matrix.arch }}_${{ matrix.configuration }}.zip + path: ${{ env.Projectname }}_${{ matrix.arch }}_${{ matrix.configuration }}.zip