Skip to content

Commit

Permalink
Modify etc/Calendar_logqt.ini and ci
Browse files Browse the repository at this point in the history
  • Loading branch information
KangLin committed May 28, 2024
1 parent 87037ca commit 7b73971
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

env:
Calendar_VERSION: v1.0.20
VCPKGGITCOMMITID: a1a1cbc975abf909a6c8985a6a2b8fe20bbd9bd6
VCPKGGITCOMMITID: 59aeb8fe8fe1c980de6bd5ba634cf21024522d81
VCPKG_TARGET_TRIPLET: ${{matrix.VCPKG_TARGET_TRIPLET}}
VCPKG_HOST_TRIPLET: x64-linux
SOURCE_DIR: ${{github.workspace}}/.cache/source
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Author: Kang Lin <[email protected]>

name: build_macos

on:
Expand All @@ -9,7 +11,7 @@ on:

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build_macos:
strategy:
Expand All @@ -28,6 +30,8 @@ jobs:

- qt_version: 5.12.12

# See: https://docs.github.com/zh/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
# See: https://github.com/actions/runner-images/tree/main
runs-on: macos-13

env:
Expand All @@ -36,7 +40,7 @@ jobs:
TOOSL_DIR: ${{github.workspace}}/.cache/tools
INSTALL_DIR: ${{github.workspace}}/.cache/install
qt_modules: qtwebengine ${{matrix.qt_modules}}
VCPKGGITCOMMITID: a1a1cbc975abf909a6c8985a6a2b8fe20bbd9bd6
VCPKGGITCOMMITID: 59aeb8fe8fe1c980de6bd5ba634cf21024522d81
VCPKG_TARGET_TRIPLET: ${{matrix.VCPKG_TARGET_TRIPLET}}
artifact_name: build_macos
Calendar_VERSION: 1.0.20
Expand Down Expand Up @@ -84,7 +88,8 @@ jobs:

- name: git clone RabbitCommon
working-directory: ${{env.SOURCE_DIR}}
run: git clone https://github.com/KangLin/RabbitCommon.git
run: |
git clone https://github.com/KangLin/RabbitCommon.git
- name: Compile
working-directory: ${{github.workspace}}/build
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/msvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ jobs:
include:
- qt_version: 6.6.2
VCPKG_TARGET_TRIPLET: x64-windows
VCPKG_PLATFORM_TOOLSET: v142
VCPKG_PLATFORM_TOOLSET: v143
qt_arch: win64_msvc2019_64
CMAKE_GENERATOR_PLATFORM: x64
qt_modules: qtscxml qtmultimedia qtwebengine qtwebchannel qtwebsockets qtwebview qtpositioning

- qt_version: 5.15.2
VCPKG_TARGET_TRIPLET: x64-windows
VCPKG_PLATFORM_TOOLSET: v142
VCPKG_PLATFORM_TOOLSET: v143
VCPKG_MANIFEST_DIR: "\\vcpkg\\manifests"
qt_arch: win64_msvc2019_64
CMAKE_GENERATOR_PLATFORM: x64

- qt_version: 5.12.12
VCPKG_TARGET_TRIPLET: x86-windows
VCPKG_PLATFORM_TOOLSET: v141
VCPKG_PLATFORM_TOOLSET: v143
VCPKG_MANIFEST_DIR: "\\vcpkg\\manifests"
qt_arch: win32_msvc2017
CMAKE_GENERATOR_PLATFORM: Win32
Expand All @@ -42,7 +42,7 @@ jobs:
SOURCE_DIR: ${{github.workspace}}\.cache\source
TOOSL_DIR: ${{github.workspace}}\.cache\tools
INSTALL_DIR: ${{github.workspace}}\.cache\install
VCPKGGITCOMMITID: a1a1cbc975abf909a6c8985a6a2b8fe20bbd9bd6
VCPKGGITCOMMITID: 59aeb8fe8fe1c980de6bd5ba634cf21024522d81
VCPKG_TARGET_TRIPLET: ${{matrix.VCPKG_TARGET_TRIPLET}}
VCPKG_PLATFORM_TOOLSET: ${{matrix.VCPKG_PLATFORM_TOOLSET}}
VCPKG_MANIFEST_DIR: "${{github.workspace}}${{matrix.VCPKG_MANIFEST_DIR}}"
Expand Down
2 changes: 1 addition & 1 deletion 3th_libs/LunarCalendar
21 changes: 18 additions & 3 deletions etc/Calendar_logqt.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
[Log]
;; Log file path.
;Path=log
;; Log file name prefix
Name="yyyy-MM-dd"
Pattern="%{time hh:mm:ss.zzz} %{pid}|%{threadid} %{if-debug}DEBUG%{endif}%{if-info}INFO%{endif}%{if-warning}WARN%{endif}%{if-critical}ERROR%{endif}%{if-fatal}FATALF%{endif} %{category} - %{message}"
; "[%{file}:%{line}, %{function}]"
;; Message format pattern. See: https://doc.qt.io/qt-6/qtlogging.html#qSetMessagePattern
Pattern="[%{time hh:mm:ss.zzz} %{pid}|%{threadid} %{if-debug}D%{endif}%{if-info}I%{endif}%{if-warning}W%{endif}%{if-critical}E%{endif}%{if-fatal}F%{endif}] %{category} - %{message}"
;[%{file}:%{line}, %{function}]"
;; Log file length
;Length=100M
;; Log file count
;Count=10
;; Write log file interval
;Interval=1

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Log rules
;; Please see QLoggingCategory documents: https://doc.qt.io/qt-6/qloggingcategory.html#logging-rules
;; Format:
;; <category>[.<type>] = true|false
[Rules]
;*.debug=false
;*=false
*.debug=false
;*.warning=false

;RabbitCommon*=false
;RabbitCommon.Updater=true

0 comments on commit 7b73971

Please sign in to comment.