Skip to content

Commit b20f065

Browse files
committed
ci(*): formatted CI pipeline files
Signed-off-by: k4yt3x <i@k4yt3x.com>
1 parent 149cf1c commit b20f065

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Build
2+
23
on:
34
push:
45
paths:
@@ -16,7 +17,7 @@ on:
1617
- "tools/**"
1718
- "third_party/**"
1819
- "CMakeLists.txt"
19-
workflow_dispatch: {}
20+
workflow_dispatch:
2021

2122
jobs:
2223
ubuntu:
@@ -28,6 +29,7 @@ jobs:
2829
uses: actions/checkout@v4
2930
with:
3031
submodules: recursive
32+
3133
- name: Install dependencies
3234
run: |
3335
git submodule update --init --recursive
@@ -43,6 +45,7 @@ jobs:
4345
glslang-tools \
4446
libomp-dev \
4547
libboost-program-options-dev
48+
4649
- name: Build Video2X
4750
run: |
4851
mkdir -p /tmp/build /tmp/install
@@ -52,6 +55,7 @@ jobs:
5255
-DINSTALL_BIN_DESTINATION=. -DINSTALL_INCLUDE_DESTINATION=include \
5356
-DINSTALL_LIB_DESTINATION=. -DINSTALL_MODEL_DESTINATION=.
5457
cmake --build /tmp/build --config Debug --target install --parallel
58+
5559
- name: Upload artifacts
5660
uses: actions/upload-artifact@v4
5761
with:
@@ -65,12 +69,14 @@ jobs:
6569
uses: actions/checkout@v4
6670
with:
6771
submodules: recursive
72+
6873
- name: Install Vulkan SDK
6974
uses: humbletim/setup-vulkan-sdk@v1.2.0
7075
with:
7176
vulkan-query-version: 1.3.204.0
7277
vulkan-components: Vulkan-Headers, Vulkan-Loader, Glslang, SPIRV-Tools, SPIRV-Headers
7378
vulkan-use-cache: true
79+
7480
- name: Install dependencies
7581
shell: pwsh
7682
run: |
@@ -86,13 +92,15 @@ jobs:
8692
curl -Lo ncnn-shared.zip "https://github.com/Tencent/ncnn/releases/download/$ncnnVersion/ncnn-$ncnnVersion-windows-vs2022-shared.zip"
8793
Expand-Archive -Path ncnn-shared.zip -DestinationPath third_party
8894
Rename-Item -Path "third_party/ncnn-$ncnnVersion-windows-vs2022-shared" -NewName ncnn-shared
95+
8996
- name: Build Video2X
9097
shell: pwsh
9198
run: |
9299
cmake -S . -B build `
93100
-DUSE_SYSTEM_NCNN=OFF -DUSE_SYSTEM_SPDLOG=OFF -DUSE_SYSTEM_BOOST=OFF `
94101
-DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=build/video2x_install
95102
cmake --build build --config Debug --parallel --target install
103+
96104
- name: Upload artifacts
97105
uses: actions/upload-artifact@v4
98106
with:
@@ -104,6 +112,7 @@ jobs:
104112
steps:
105113
- name: Checkout repository
106114
uses: actions/checkout@v4
115+
107116
- uses: mr-smithers-excellent/docker-build-push@v5
108117
name: Build the Docker image
109118
with:

.github/workflows/docs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ name: Docs
22

33
on:
44
push:
5-
branches: ["master"]
5+
branches:
6+
- master
7+
paths:
8+
- "docs/book/**"
69
workflow_dispatch:
710

811
permissions:

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Release
2+
23
on:
34
push:
45
tags:
@@ -33,6 +34,7 @@ jobs:
3334
uses: actions/checkout@v4
3435
with:
3536
submodules: recursive
37+
3638
- name: Install dependencies
3739
run: |
3840
git submodule update --init --recursive
@@ -48,6 +50,7 @@ jobs:
4850
glslang-tools \
4951
libomp-dev \
5052
libboost-program-options-dev
53+
5154
- name: Build Video2X
5255
run: |
5356
cmake -B build -S . -DUSE_SYSTEM_NCNN=OFF -DUSE_SYSTEM_SPDLOG=OFF -DSPDLOG_NO_EXCEPTIONS=ON \
@@ -57,6 +60,7 @@ jobs:
5760
mkdir -p build/video2x-linux-ubuntu-2404-amd64/DEBIAN
5861
cp packaging/debian/control build/video2x-linux-ubuntu-2404-amd64/DEBIAN/control
5962
dpkg-deb --build build/video2x-linux-ubuntu-2404-amd64
63+
6064
- name: Upload artifacts
6165
uses: actions/upload-artifact@v4
6266
with:
@@ -73,12 +77,14 @@ jobs:
7377
uses: actions/checkout@v4
7478
with:
7579
submodules: recursive
80+
7681
- name: Install Vulkan SDK
7782
uses: humbletim/setup-vulkan-sdk@v1.2.0
7883
with:
7984
vulkan-query-version: 1.3.204.0
8085
vulkan-components: Vulkan-Headers, Vulkan-Loader, Glslang, SPIRV-Tools, SPIRV-Headers
8186
vulkan-use-cache: true
87+
8288
- name: Install dependencies
8389
shell: pwsh
8490
run: |
@@ -94,16 +100,19 @@ jobs:
94100
curl -Lo ncnn-shared.zip "https://github.com/Tencent/ncnn/releases/download/$ncnnVersion/ncnn-$ncnnVersion-windows-vs2022-shared.zip"
95101
Expand-Archive -Path ncnn-shared.zip -DestinationPath third_party
96102
Rename-Item -Path "third_party/ncnn-$ncnnVersion-windows-vs2022-shared" -NewName ncnn-shared
103+
97104
- name: Build Video2X
98105
shell: pwsh
99106
run: |
100107
cmake -S . -B build `
101108
-DUSE_SYSTEM_NCNN=OFF -DUSE_SYSTEM_SPDLOG=OFF -DUSE_SYSTEM_BOOST=OFF `
102109
-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=build/video2x_install
103110
cmake --build build --config Release --parallel --target install
111+
104112
- name: Compress artifacts
105113
run: |
106114
Compress-Archive -Path build/video2x_install/* -DestinationPath build/video2x-windows-amd64.zip
115+
107116
- name: Upload artifacts
108117
uses: actions/upload-artifact@v4
109118
with:
@@ -118,6 +127,7 @@ jobs:
118127
steps:
119128
- name: Checkout repository
120129
uses: actions/checkout@v4
130+
121131
- uses: mr-smithers-excellent/docker-build-push@v5
122132
name: Build & push the Docker image
123133
with:
@@ -141,6 +151,7 @@ jobs:
141151
steps:
142152
- name: Download artifacts
143153
uses: actions/download-artifact@v4
154+
144155
- name: Create release
145156
id: create_release
146157
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)