Skip to content

Commit 2653b8e

Browse files
author
zhangfuwen
committed
ci: 更新CMake单平台工作流配置
修改了上传构建产物的路径格式,并调整了相关配置。移除了不再需要的发布步骤,以简化工作流。
1 parent 4c4ba23 commit 2653b8e

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

.github/workflows/cmake-single-platform.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,30 @@ jobs:
3535
run: |
3636
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
3737
sudo bash tools/create_disk.sh ./rootfs/binary ${{github.workspace}}/build/test.img
38+
file build/test.img
39+
file build/kernel.iso
3840
3941
- name: Upload Build Artifacts
4042
uses: actions/[email protected]
4143
with:
4244
name: build-artifacts
43-
path: |
44-
build/kernel.iso
45-
build/test.img
46-
if-no-files-found: warn
45+
path:
46+
- ${{github.workspace}}/build/kernel.iso
47+
- ${{github.workspace}}/build/test.img
48+
if-no-files-found: error
4749
compression-level: 6
48-
overwrite: false
50+
overwrite: true
4951
include-hidden-files: false
5052

51-
- name: Release
52-
uses: googleapis/[email protected]
53-
with:
54-
# GitHub token for creating and grooming release PRs, defaults to using secrets.GITHUB_TOKEN
55-
token: ${{ github.token }}
56-
# what type of release is this, one of (ruby, python, node, terraform-module)
57-
release-type: simple
58-
# Should stale release PRs be closed post release? Defaults to true
59-
clean: true
53+
# - name: Release
54+
# uses: googleapis/[email protected]
55+
# with:
56+
# # GitHub token for creating and grooming release PRs, defaults to using secrets.GITHUB_TOKEN
57+
# token: ${{ github.token }}
58+
# # what type of release is this, one of (ruby, python, node, terraform-module)
59+
# release-type: simple
60+
# # Should stale release PRs be closed post release? Defaults to true
61+
# clean: true
6062

6163

6264
# - name: Test

0 commit comments

Comments
 (0)