Skip to content

Commit a8f72d0

Browse files
committed
更新 CI 配置,升级 GitHub Actions 版本并添加 abseil_dll.dll 到所需运行时列表
1 parent d6568f7 commit a8f72d0

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/cpp-cmake-ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ permissions:
1919
env:
2020
APP_NAME: YOLOClassifier
2121
BUILD_TYPE: Release
22+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
2223

2324
jobs:
2425
build:
@@ -43,7 +44,7 @@ jobs:
4344

4445
steps:
4546
- name: Checkout
46-
uses: actions/checkout@v4
47+
uses: actions/checkout@v5
4748

4849
- name: Install Linux system packages
4950
if: runner.os == 'Linux'
@@ -85,7 +86,7 @@ jobs:
8586
echo "VCPKG_ROOT=$RUNNER_TEMP/vcpkg" >> "$GITHUB_ENV"
8687
8788
- name: Restore vcpkg cache
88-
uses: actions/cache@v4
89+
uses: actions/cache@v5
8990
with:
9091
path: |
9192
${{ runner.temp }}/vcpkg/downloads
@@ -162,15 +163,15 @@ jobs:
162163
163164
- name: Upload Windows artifact
164165
if: runner.os == 'Windows'
165-
uses: actions/upload-artifact@v4
166+
uses: actions/upload-artifact@v6
166167
with:
167168
name: ${{ matrix.artifact_name }}
168169
path: dist/${{ matrix.artifact_name }}.zip
169170
if-no-files-found: error
170171

171172
- name: Upload Linux artifact
172173
if: runner.os == 'Linux'
173-
uses: actions/upload-artifact@v4
174+
uses: actions/upload-artifact@v6
174175
with:
175176
name: ${{ matrix.artifact_name }}
176177
path: dist/${{ matrix.artifact_name }}.tar.gz

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ cmake --build build
9494
- `YOLOClassifier.exe`
9595
- `windeployqt` 部署后的 Qt 运行库
9696
- `onnxruntime*.dll`
97+
- `abseil_dll.dll`
9798
- `libprotobuf-lite.dll`
9899
- `libprotobuf.dll`
99100
- `README.md`

scripts/package-windows.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ $packageRoot = Join-Path $distDir $packageName
3333
$zipPath = Join-Path $distDir "$packageName.zip"
3434
$requiredRuntimeDlls = @(
3535
"onnxruntime.dll",
36+
"abseil_dll.dll",
3637
"libprotobuf-lite.dll",
3738
"libprotobuf.dll"
3839
)

0 commit comments

Comments
 (0)