11name : Release
2+
23on :
34 push :
45 tags :
3334 uses : actions/checkout@v4
3435 with :
3536 submodules : recursive
37+
3638 - name : Install dependencies
3739 run : |
3840 git submodule update --init --recursive
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 \
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