Skip to content

Commit d78e528

Browse files
committed
CI: generate 7z archive
1 parent 81f0e4d commit d78e528

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ jobs:
187187
with:
188188
msystem: CLANG64
189189
update: true
190-
install: git zip mingw-w64-clang-x86_64-cmake mingw-w64-clang-x86_64-clang mingw-w64-clang-x86_64-vulkan-loader mingw-w64-clang-x86_64-opencl-icd
190+
install: git mingw-w64-clang-x86_64-7zip mingw-w64-clang-x86_64-cmake mingw-w64-clang-x86_64-clang mingw-w64-clang-x86_64-vulkan-loader mingw-w64-clang-x86_64-opencl-icd
191191

192192
- name: print msys version
193193
run: uname -a
@@ -222,13 +222,16 @@ jobs:
222222
run: ctest
223223

224224
- name: create zip archive
225-
run: zip -r9 fastfetch-$(./fastfetch --version-raw)-Win64.zip *.dll fastfetch.exe flashfetch.exe presets
225+
run: 7z a -tzip -mx9 -bd -y fastfetch-$(./fastfetch --version-raw)-Win64.zip *.dll fastfetch.exe flashfetch.exe presets
226+
227+
- name: create 7z archive
228+
run: 7z a -t7z -mx9 -bd -y fastfetch-$(./fastfetch --version-raw)-Win64.7z *.dll fastfetch.exe flashfetch.exe presets
226229

227230
- name: upload artifacts
228231
uses: actions/upload-artifact@v3
229232
with:
230233
name: fastfetch-win64
231-
path: ./fastfetch-*-Win64.zip
234+
path: ./fastfetch-*-Win64.*
232235

233236
win32:
234237
name: Win32
@@ -248,7 +251,7 @@ jobs:
248251
with:
249252
msystem: CLANG32
250253
update: true
251-
install: git zip mingw-w64-clang-i686-cmake mingw-w64-clang-i686-clang mingw-w64-clang-i686-vulkan-loader mingw-w64-clang-i686-opencl-icd
254+
install: git mingw-w64-clang-i686-7zip mingw-w64-clang-i686-cmake mingw-w64-clang-i686-clang mingw-w64-clang-i686-vulkan-loader mingw-w64-clang-i686-opencl-icd
252255

253256
- name: print msys version
254257
run: uname -a
@@ -280,13 +283,16 @@ jobs:
280283
run: ctest
281284

282285
- name: create zip archive
283-
run: zip -r9 fastfetch-$(./fastfetch --version-raw)-Win32.zip *.dll fastfetch.exe flashfetch.exe presets
286+
run: 7z a -tzip -mx9 -bd -y fastfetch-$(./fastfetch --version-raw)-Win32.zip *.dll fastfetch.exe flashfetch.exe presets
287+
288+
- name: create 7z archive
289+
run: 7z a -t7z -mx9 -bd -y fastfetch-$(./fastfetch --version-raw)-Win32.7z *.dll fastfetch.exe flashfetch.exe presets
284290

285291
- name: upload artifacts
286292
uses: actions/upload-artifact@v3
287293
with:
288294
name: fastfetch-win32
289-
path: ./fastfetch-*-Win32.zip
295+
path: ./fastfetch-*-Win32.*
290296

291297
release:
292298
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'fastfetch-cli/fastfetch'

0 commit comments

Comments
 (0)