Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
chore:更新依赖版本、修复ci
Browse files Browse the repository at this point in the history
  • Loading branch information
engsr6982 authored Jun 20, 2024
1 parent f6c5ea3 commit 656f857
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 15 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
- uses: actions/checkout@v4

- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: branch@master

- uses: actions/cache@v4
with:
Expand All @@ -19,6 +21,8 @@ jobs:
restore-keys: |
xmake-
- uses: microsoft/setup-msbuild@v2

- run: |
xmake repo -u
Expand Down Expand Up @@ -57,15 +61,15 @@ jobs:
name: SDK-${{ github.sha }}
path: SDK

clang-format:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
#clang-format:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v4

- run: |
choco install llvm -y --version=17.0.6
# - run: |
# choco install llvm -y --version=17.0.6

- name: clang-format
run: |
Get-ChildItem src/ -Filter *.cpp -Recurse | ForEach-Object { clang-format --dry-run -Werror $_.FullName; if ($LASTEXITCODE -ne 0) { exit 1; } }
Get-ChildItem src/ -Filter *.h -Recurse | ForEach-Object { clang-format --dry-run -Werror $_.FullName; if ($LASTEXITCODE -ne 0) { exit 1; } }
# - name: clang-format
# run: |
# Get-ChildItem src/ -Filter *.cpp -Recurse | ForEach-Object { clang-format --dry-run -Werror $_.FullName; if ($LASTEXITCODE -ne 0) { exit 1; } }
# Get-ChildItem src/ -Filter *.h -Recurse | ForEach-Object { clang-format --dry-run -Werror $_.FullName; if ($LASTEXITCODE -ne 0) { exit 1; } }
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
- uses: actions/checkout@v4

- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: branch@master

- uses: actions/cache@v4
with:
Expand All @@ -19,6 +21,8 @@ jobs:
restore-keys: |
xmake-
- uses: microsoft/setup-msbuild@v2

- run: |
xmake repo -u
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@

## [Unreleased]

## [0.10.0] - 2024-6-20

### Changed

- 适配 LeviLamina 0.13.0

## [0.9.0] - 2024-5-15

### Changed
Expand Down
6 changes: 3 additions & 3 deletions tooth.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"format_version": 2,
"tooth": "github.com/engsr6982/PermissionCore",
"version": "0.9.0",
"version": "0.10.0",
"info": {
"name": "PermissionCore",
"description": "权限组前置",
Expand All @@ -13,9 +13,9 @@
"library"
]
},
"asset_url": "https://github.com/engsr6982/PermissionCore/releases/download/v0.9.0/PermissionCore-windows-x64.zip",
"asset_url": "https://github.com/engsr6982/PermissionCore/releases/download/v0.10.0/PermissionCore-windows-x64.zip",
"prerequisites": {
"github.com/LiteLDev/LeviLamina": "0.12.x"
"github.com/LiteLDev/LeviLamina": "0.13.x"
},
"files": {
"place": [
Expand Down
9 changes: 7 additions & 2 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ add_repositories("liteldev-repo https://github.com/LiteLDev/xmake-repo.git")
-- add_requires("levilamina develop") to use develop version
-- please note that you should add bdslibrary yourself if using dev version
add_requires(
"levilamina 0.12.1"
"levilamina 0.13.0"
)

if not has_config("vs_runtime") then
Expand All @@ -25,7 +25,12 @@ target("PermissionCore") -- Change this to your plugin name.
"/w44738",
"/w45204"
)
add_defines("NOMINMAX", "UNICODE", "PERMISSION_CORE_API_EXPORT")
add_defines(
"NOMINMAX",
"UNICODE",
"PERMISSION_CORE_API_EXPORT",
"_HAS_CXX23=1"
)

if is_mode("debug") then
add_defines("LL_I18N_COLLECT_STRINGS", "DEBUG")
Expand Down

0 comments on commit 656f857

Please sign in to comment.