This repository was archived by the owner on Mar 20, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.cnb.yml
More file actions
53 lines (51 loc) · 1.41 KB
/
.cnb.yml
File metadata and controls
53 lines (51 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.build: &build
docker:
image: ubuntu:latest
stages:
- name: Setup MSVC
script: |-
# 使用 GitHub Action: ilammy/msvc-dev-cmd@v1
# 请手动替换为等效 CNB 插件或脚本
- name: Install Qt
script: |-
# 使用 GitHub Action: jurplel/install-qt-action@v4
# 请手动替换为等效 CNB 插件或脚本
- name: Remove MinGW from PATH
script: >
$env:PATH = ($env:PATH.Split(';') | Where-Object {$_ -notmatch 'mingw64'})
-join ';'
- name: Configure (qmake)
script: |
mkdir -p build
cd build
qmake ../src
- name: Build (Windows)
script: |
cd build
nmake /NOLOGO
windeployqt release\CipherTools.exe
del /q release\*.obj
del /q release\*.h
del /q release\*.cpp
- name: Build
script: |
cd build
make -j$(nproc || sysctl -n hw.ncpu)
make INSTALL_ROOT="$PWD/../dist" install
- name: Upload artifact
script: |-
# 使用 GitHub Action: actions/upload-artifact@v4
# 请手动替换为等效 CNB 插件或脚本
- name: Upload artifact for windows
script: |-
# 使用 GitHub Action: actions/upload-artifact@v4
# 请手动替换为等效 CNB 插件或脚本
main:
push:
-
name: "push-build"
<<: *build
pull_request:
-
name: "pull_request-build"
<<: *build