From 28a2d4dbff87c06ebb80e6fd44731a9aee0cc573 Mon Sep 17 00:00:00 2001 From: Xoris Date: Tue, 2 Jul 2024 20:15:22 +0800 Subject: [PATCH] fix: fixed ci build error --- .github/workflows/build-plugin-qt6.yml | 6 ++++-- CMakeLists.txt | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-plugin-qt6.yml b/.github/workflows/build-plugin-qt6.yml index 8377832..b20c254 100644 --- a/.github/workflows/build-plugin-qt6.yml +++ b/.github/workflows/build-plugin-qt6.yml @@ -2,6 +2,8 @@ name: Kate Text Highlight Plugin Build on: push: + branches: + - master release: types: published workflow_dispatch: @@ -104,7 +106,7 @@ jobs: cmake --build . cd .. - name: Uploading Artifact - uses: actions/upload-artifact@master + uses: actions/upload-artifact@v4 with: name: text-highlight-plugin-${{ github.sha }}.so path: build/bin/kf${{ env.QT_MAJOR_VERSION }}/ktexteditor/text-highlight-plugin.so @@ -113,6 +115,6 @@ jobs: if: github.event_name == 'release' with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: text-highlight-plugin-${{ github.sha }}.so + file: build/bin/kf${{ env.QT_MAJOR_VERSION }}/ktexteditor/text-highlight-plugin.so tag: ${{ github.ref }} overwrite: true diff --git a/CMakeLists.txt b/CMakeLists.txt index 03a2e95..b08a155 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.16) set(PROJECT text-highlight-plugin) project(${PROJECT} VERSION 1.0) +set(CMAKE_CXX_STANDARD 20) + set(KF_DEP_VERSION "${QT_MAJOR_VERSION}") find_package(ECM ${KF_DEP_VERSION} QUIET REQUIRED NO_MODULE)