From ffd0a45788498b0b9206d212e4bf86e1d0b3be8b Mon Sep 17 00:00:00 2001 From: Christian Grasser Date: Tue, 15 Sep 2026 01:42:09 +0200 Subject: [PATCH] initial CI build --- .github/dependabot.yml | 13 ++++++++++ .github/workflows/CI_build.yml | 44 ++++++++++++++++++++++++++++++++++ build.cmd | 2 +- 3 files changed, 58 insertions(+), 1 deletion(-) 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..7ea73a3 --- /dev/null +++ b/.github/workflows/CI_build.yml @@ -0,0 +1,44 @@ +name: CI_build + +on: [push, pull_request] + +jobs: + build: + + runs-on: windows-2022 + strategy: + fail-fast: false + matrix: + build_configuration: [Release] + build_platform: [x64] + + steps: + - name: Checkout repo + uses: actions/checkout@v7 + + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v3 + + - name: MSBuild of plugin dll + working-directory: .\ + run: .\build.cmd + + - uses: olegtarasov/get-tag@v2.1.4 + id: tagName + + - name: zip artifacts for x64 + if: matrix.build_platform == 'x64' && matrix.build_configuration == 'Release' + run: 7z a FileTools_${{ steps.tagName.outputs.tag }}_${{ matrix.build_platform }}.zip .\build\FileTools.dll + + - name: Archive artifacts for ${{ matrix.build_platform }} + if: matrix.build_configuration == 'Release' + uses: actions/upload-artifact@v7 + with: + name: FileTools_${{ steps.tagName.outputs.tag }}_${{ matrix.build_platform }}.zip + path: FileTools_${{ steps.tagName.outputs.tag }}_${{ matrix.build_platform }}.zip + + - name: Create release on tagging + uses: softprops/action-gh-release@v3 + if: startsWith(github.ref, 'refs/tags/') + with: + files: FileTools_${{ steps.tagName.outputs.tag }}_${{ matrix.build_platform }}.zip \ No newline at end of file diff --git a/build.cmd b/build.cmd index dd7f2ea..4e56e5f 100644 --- a/build.cmd +++ b/build.cmd @@ -51,7 +51,7 @@ copy /y "src\help.txt" "%DST%\help.txt" if errorlevel 1 ( echo Help file copy failed & exit /b 1 ) :: -- Restart Notepad++ -- -start "" "C:\Program Files\Notepad++\notepad++.exe" +if exist "C:\Program Files\Notepad++\notepad++.exe" ( start "" "C:\Program Files\Notepad++\notepad++.exe" ) echo Build and deploy complete. exit /b 0