@@ -158,164 +158,6 @@ jobs:
158158          name : fastfetch-linux-aarch64 
159159          path : ./fastfetch-*.* 
160160
161- <<<<<<< HEAD 
162-   linux-armv7 :
163-     name : Linux-armv7 
164-     runs-on : ubuntu-22.04 
165-     permissions :
166-       security-events : write 
167-       contents : read 
168-     steps :
169-       - name : checkout repository 
170-         uses : actions/checkout@v4 
171- 
172-       - name : run VM 
173-         uses : uraimo/run-on-arch-action@v2 
174-         id : runcmd 
175-         with :
176-           arch : armv7 
177-           distro : ubuntu20.04 
178-           githubToken : ${{ github.token }} 
179-           run : | 
180-             uname -a 
181-             apt-get update && apt-get install -y wget 
182-             # CMake installed by apt has bug `list sub-command REMOVE_ITEM requires two or more arguments` 
183-             wget --no-check-certificate https://apt.kitware.com/ubuntu/pool/main/c/cmake/{cmake_3.29.2-0kitware1ubuntu20.04.1_armhf.deb,cmake-data_3.29.2-0kitware1ubuntu20.04.1_all.deb} 
184-             dpkg -i *.deb 
185-             apt-get install -y make g++ libvulkan-dev libwayland-dev libxrandr-dev libxcb-randr0-dev libdconf-dev libdbus-1-dev libmagickcore-dev libxfconf-0-dev libsqlite3-dev librpm-dev libegl-dev libglx-dev libosmesa6-dev ocl-icd-opencl-dev libnm-dev libpulse-dev libdrm-dev directx-headers-dev rpm 
186-             cmake -DSET_TWEAK=Off -DBUILD_TESTS=On -DCMAKE_INSTALL_PREFIX=/usr . 
187-             cmake --build . --target package --verbose -j4 
188-             ./fastfetch --list-features 
189-             time ./fastfetch -c presets/ci.jsonc 
190-             time ./fastfetch -c presets/ci.jsonc --format json 
191-             time ./flashfetch 
192-             ldd fastfetch 
193-             ctest 
194- 
195-        - name : upload artifacts 
196-         uses : actions/upload-artifact@v4 
197-         with :
198-           name : fastfetch-linux-armv7 
199-           path : ./fastfetch-*.* 
200- 
201-   linux-riscv64 :
202-     name : Linux-riscv64 
203-     runs-on : ubuntu-22.04 
204-     permissions :
205-       security-events : write 
206-       contents : read 
207-     steps :
208-       - name : checkout repository 
209-         uses : actions/checkout@v4 
210- 
211-       - name : run VM 
212-         uses : uraimo/run-on-arch-action@v2 
213-         id : runcmd 
214-         with :
215-           arch : riscv64 
216-           distro : ubuntu22.04 
217-           githubToken : ${{ github.token }} 
218-           run : | 
219-             uname -a 
220-             apt-get update && apt-get install -y cmake make g++ libvulkan-dev libwayland-dev libxrandr-dev libxcb-randr0-dev libdconf-dev libdbus-1-dev libmagickcore-dev libxfconf-0-dev libsqlite3-dev librpm-dev libegl-dev libglx-dev libosmesa6-dev ocl-icd-opencl-dev libnm-dev libpulse-dev libdrm-dev libddcutil-dev libchafa-dev directx-headers-dev rpm 
221-             cmake -DSET_TWEAK=Off -DBUILD_TESTS=On -DCMAKE_INSTALL_PREFIX=/usr . 
222-             cmake --build . --target package --verbose -j4 
223-             ./fastfetch --list-features 
224-             time ./fastfetch -c presets/ci.jsonc 
225-             time ./fastfetch -c presets/ci.jsonc --format json 
226-             time ./flashfetch 
227-             ldd fastfetch 
228-             ctest 
229- 
230-        - name : upload artifacts 
231-         uses : actions/upload-artifact@v4 
232-         with :
233-           name : fastfetch-linux-riscv64 
234-           path : ./fastfetch-*.* 
235- 
236-   musl-amd64 :
237-     name : Musl-amd64 
238-     runs-on : ubuntu-latest 
239-     steps :
240-       - uses : actions/checkout@v4 
241- 
242-       - name : setup alpine linux 
243-         uses : jirutka/setup-alpine@master 
244-         with :
245-           branch : v3.19 
246- 
247-       - name : install dependencies 
248-         run : | 
249-           cat /etc/alpine-release 
250-           uname -a 
251-           apk add cmake samurai vulkan-loader-dev libxcb-dev wayland-dev libdrm-dev dconf-dev imagemagick-dev chafa-dev zlib-dev dbus-dev mesa-dev opencl-dev xfconf-dev sqlite-dev networkmanager-dev pulseaudio-dev ddcutil-dev gcc g++ 
252-          shell : alpine.sh --root {0} 
253- 
254-       - name : build 
255-         run : | 
256-             cmake -DSET_TWEAK=Off -DBUILD_TESTS=On -DCMAKE_INSTALL_PREFIX=/usr -DIS_MUSL=ON -GNinja . 
257-             cmake --build . --target package --verbose -j4 
258-          shell : alpine.sh {0} 
259- 
260-       - name : run 
261-         run : | 
262-             ./fastfetch --list-features 
263-             time ./fastfetch -c presets/ci.jsonc 
264-             time ./fastfetch -c presets/ci.jsonc --format json 
265-             time ./flashfetch 
266-             ldd fastfetch 
267-             ctest 
268-          shell : alpine.sh {0} 
269- 
270-       - name : upload artifacts 
271-         uses : actions/upload-artifact@v4 
272-         with :
273-           name : fastfetch-musl-amd64 
274-           path : ./fastfetch-*.* 
275- 
276-   musl-aarch64 :
277-     name : Musl-aarch64 
278-     runs-on : ubuntu-latest 
279-     steps :
280-       - uses : actions/checkout@v4 
281- 
282-       - name : setup alpine linux 
283-         uses : jirutka/setup-alpine@master 
284-         with :
285-           branch : v3.19 
286-           arch : aarch64 
287- 
288-       - name : install dependencies 
289-         run : | 
290-           cat /etc/alpine-release 
291-           uname -a 
292-           apk add cmake samurai vulkan-loader-dev libxcb-dev wayland-dev libdrm-dev dconf-dev imagemagick-dev chafa-dev zlib-dev dbus-dev mesa-dev opencl-dev xfconf-dev sqlite-dev networkmanager-dev pulseaudio-dev ddcutil-dev gcc g++ 
293-          shell : alpine.sh --root {0} 
294- 
295-       - name : build 
296-         run : | 
297-             cmake -DSET_TWEAK=Off -DBUILD_TESTS=On -DCMAKE_INSTALL_PREFIX=/usr -DIS_MUSL=ON -GNinja . 
298-             cmake --build . --target package --verbose -j4 
299-          shell : alpine.sh {0} 
300- 
301-       - name : run 
302-         run : | 
303-             ./fastfetch --list-features 
304-             time ./fastfetch -c presets/ci.jsonc 
305-             time ./fastfetch -c presets/ci.jsonc --format json 
306-             time ./flashfetch 
307-             ldd fastfetch 
308-             ctest 
309-          shell : alpine.sh {0} 
310- 
311-       - name : upload artifacts 
312-         uses : actions/upload-artifact@v4 
313-         with :
314-           name : fastfetch-musl-aarch64 
315-           path : ./fastfetch-*.* 
316- 
317- ======= 
318- >>>>>>> 70dcc44e (chore: gpustack update ci) 
319161  macos-universal :
320162    name : macOS-universal 
321163    runs-on : macos-12 
@@ -370,115 +212,6 @@ jobs:
370212        with :
371213          name : fastfetch-macos-universal 
372214          path : ./fastfetch-*.* 
373- 
374- <<<<<<< HEAD 
375-   sunos-amd64 :
376-     runs-on : ubuntu-latest 
377-     name : SunOS-amd64 
378-     steps :
379-       - name : checkout repository 
380-         uses : actions/checkout@v4 
381- 
382-       - name : run VM 
383-         uses : vmactions/omnios-vm@v1 
384-         with :
385-           usesh : true 
386-           prepare : | 
387-             uname -a 
388-             pkg update --accept 
389-             pkg install gcc13 cmake git pkg-config glib2 dbus sqlite-3 imagemagick 
390- 
391-            run : | 
392-             cmake -DSET_TWEAK=Off -DBUILD_TESTS=On . 
393-             cmake --build . --target package --verbose -j4 
394-             ./fastfetch --list-features 
395-             time ./fastfetch 
396-             time ./fastfetch --format json 
397-             time ./flashfetch 
398-             ldd fastfetch 
399-             ctest 
400-             cpack 
401- 
402-        - name : upload artifacts 
403-         uses : actions/upload-artifact@v4 
404-         with :
405-           name : fastfetch-sunos-amd64 
406-           path : ./fastfetch-*.* 
407- 
408-   freebsd-amd64 :
409-     name : FreeBSD-amd64 
410-     runs-on : ubuntu-latest 
411-     permissions :
412-       security-events : write 
413-       contents : read 
414-     steps :
415-       - name : checkout repository 
416-         uses : actions/checkout@v4 
417- 
418-       - name : run VM 
419-         uses : cross-platform-actions/action@master 
420-         with :
421-           operating_system : freebsd 
422-           architecture : x86-64 
423-           cpu_count : 3 
424-           shell : bash 
425-           version : ' 13.2' 
426-           run : | 
427-             uname -a 
428-             sudo pkg update 
429-             sudo pkg install -y cmake git pkgconf binutils wayland vulkan-headers vulkan-loader libxcb libXrandr libX11 libdrm glib dconf dbus sqlite3-tcl xfce4-conf ImageMagick6 ImageMagick7 chafa egl libosmesa opencl ocl-icd v4l_compat 
430-             cmake -DSET_TWEAK=Off -DBUILD_TESTS=On . 
431-             cmake --build . --target package --verbose -j4 
432-             ./fastfetch --list-features 
433-             time ./fastfetch 
434-             time ./fastfetch --format json 
435-             time ./flashfetch 
436-             ldd fastfetch 
437-             ctest 
438- 
439-        - name : upload artifacts 
440-         uses : actions/upload-artifact@v4 
441-         with :
442-           name : fastfetch-freebsd-amd64 
443-           path : ./fastfetch-*.* 
444- 
445-   freebsd-aarch64 :
446-     name : FreeBSD-aarch64 
447-     runs-on : ubuntu-latest 
448-     permissions :
449-       security-events : write 
450-       contents : read 
451-     steps :
452-       - name : checkout repository 
453-         uses : actions/checkout@v4 
454- 
455-       - name : run VM 
456-         uses : cross-platform-actions/action@master 
457-         with :
458-           operating_system : freebsd 
459-           architecture : arm64 
460-           cpu_count : 3 
461-           shell : bash 
462-           version : ' 13.2' 
463-           run : | 
464-             uname -a 
465-             sudo pkg update 
466-             sudo pkg install -y cmake git pkgconf binutils wayland vulkan-headers vulkan-loader libxcb libXrandr libX11 libdrm glib dconf dbus sqlite3-tcl xfce4-conf ImageMagick6 ImageMagick7 chafa egl libosmesa opencl ocl-icd v4l_compat 
467-             cmake -DSET_TWEAK=Off -DBUILD_TESTS=On . 
468-             cmake --build . --target package --verbose -j4 
469-             ./fastfetch --list-features 
470-             time ./fastfetch 
471-             time ./fastfetch --format json 
472-             time ./flashfetch 
473-             ldd fastfetch 
474-             ctest 
475- 
476-        - name : upload artifacts 
477-         uses : actions/upload-artifact@v4 
478-         with :
479-           name : fastfetch-freebsd-aarch64 
480-           path : ./fastfetch-*.* 
481- 
482215  windows-amd64 :
483216    name : Windows-amd64 
484217    runs-on : windows-latest 
@@ -543,100 +276,15 @@ jobs:
543276        with :
544277          name : fastfetch-windows-amd64 
545278          path : ./fastfetch-windows-amd64.* 
546- 
547-   windows-i686 :
548-     name : Windows-i686 
549-     runs-on : windows-latest 
550-     permissions :
551-       security-events : write 
552-       contents : read 
553-     defaults :
554-       run :
555-         shell : msys2 {0} 
556-     steps :
557-       - name : checkout repository 
558-         uses : actions/checkout@v4 
559- 
560-       - name : setup-msys2 
561-         uses : msys2/setup-msys2@v2 
562-         with :
563-           msystem : CLANG32 
564-           update : true 
565-           install : git p7zip mingw-w64-clang-i686-cmake mingw-w64-clang-i686-clang mingw-w64-clang-i686-vulkan-loader mingw-w64-clang-i686-vulkan-headers mingw-w64-clang-i686-opencl-icd mingw-w64-clang-i686-opencl-headers 
566- 
567-       - name : print msys version 
568-         run : uname -a 
569- 
570-       - name : Initialize CodeQL 
571-         uses : github/codeql-action/init@v3 
572-         with :
573-           languages : c, cpp 
574- 
575-       - name : configure project 
576-         run : env PKG_CONFIG_PATH=/clang32/lib/pkgconfig/:$PKG_CONFIG_PATH cmake -DSET_TWEAK=Off -DBUILD_TESTS=On . 
577- 
578-       - name : build project 
579-         run : cmake --build . --verbose -j4 
580- 
581-       - name : perform CodeQL analysis 
582-         uses : github/codeql-action/analyze@v3 
583- 
584-       - name : copy necessary dlls 
585-         run : cp /clang32/bin/{OpenCL,vulkan-1}.dll . 
586- 
587-       - name : download amd_ags 
588-         run : curl -LO https://github.com/GPUOpen-LibrariesAndSDKs/AGS_SDK/raw/master/ags_lib/lib/amd_ags_x86.dll 
589- 
590-       - name : run fastfetch 
591-         run : time ./fastfetch -c presets/ci.jsonc 
592- 
593-       - name : run fastfetch --format json 
594-         run : time ./fastfetch -c presets/ci.jsonc --format json 
595- 
596-       - name : run flashfetch 
597-         run : time ./flashfetch 
598- 
599-       - name : print dependencies 
600-         run : ldd fastfetch 
601- 
602-       - name : run tests 
603-         run : ctest 
604- 
605-       - name : create zip archive 
606-         run : 7z a -tzip -mx9 -bd -y fastfetch-windows-i686.zip LICENSE *.dll fastfetch.exe flashfetch.exe presets 
607- 
608-       - name : create 7z archive 
609-         run : 7z a -t7z -mx9 -bd -y fastfetch-windows-i686.7z LICENSE *.dll fastfetch.exe flashfetch.exe presets 
610- 
611-       - name : upload artifacts 
612-         uses : actions/upload-artifact@v4 
613-         with :
614-           name : fastfetch-windows-i686 
615-           path : ./fastfetch-windows-i686.* 
616- 
617- ======= 
618- >>>>>>> 70dcc44e (chore: gpustack update ci) 
619279  release :
620-     if : github.event_name == 'push' && github.ref == 'refs/heads/gpustack-main' && github.repository == 'aiwantaozi/fastfetch' 
280+     if : github.event_name == 'push' && ( github.ref == 'refs/heads/gpustack-main' || contains(github.ref, 'gpustack-release') )  && github.repository == 'aiwantaozi/fastfetch' 
621281    name : Release 
622282    runs-on : ubuntu-latest 
623283    needs :
624284      - linux-amd64 
625285      - linux-aarch64 
626- <<<<<<< HEAD 
627-       - linux-armv7 
628-       - linux-riscv64 
629-       - musl-amd64 
630-       - musl-aarch64 
631286      - macos-universal 
632-       - freebsd-amd64 
633-       - freebsd-aarch64 
634-       - sunos-amd64 
635287      - windows-amd64 
636-       - windows-i686 
637- ======= 
638-       - macos-universal 
639- >>>>>>> 70dcc44e (chore: gpustack update ci) 
640288    permissions :
641289      contents : write 
642290    steps :
0 commit comments