Skip to content

Commit 0d20164

Browse files
committed
CI (Windows): add WoA
1 parent 3320532 commit 0d20164

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

.github/workflows/ci.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,68 @@ jobs:
654654
name: fastfetch-windows-amd64
655655
path: ./fastfetch-windows-amd64.*
656656

657+
windows-aarch64:
658+
name: Windows-aarch64
659+
runs-on: windows-11-arm
660+
permissions:
661+
security-events: write
662+
contents: read
663+
defaults:
664+
run:
665+
shell: msys2 {0}
666+
steps:
667+
- name: checkout repository
668+
uses: actions/checkout@v4
669+
670+
- name: setup-msys2
671+
uses: msys2/setup-msys2@v2
672+
with:
673+
msystem: CLANGARM64
674+
update: true
675+
install: git mingw-w64-clang-aarch64-7zip mingw-w64-clang-aarch64-cmake mingw-w64-clang-aarch64-clang mingw-w64-clang-aarch64-vulkan-loader mingw-w64-clang-aarch64-vulkan-headers mingw-w64-clang-aarch64-opencl-icd mingw-w64-clang-aarch64-opencl-headers mingw-w64-clang-aarch64-cppwinrt mingw-w64-clang-aarch64-imagemagick
676+
677+
- name: print msys version
678+
run: uname -a
679+
680+
- name: configure project
681+
run: env PKG_CONFIG_PATH=/clangarm64/lib/pkgconfig/:$PKG_CONFIG_PATH cmake -DSET_TWEAK=Off -DBUILD_TESTS=On .
682+
683+
- name: build project
684+
run: cmake --build . --verbose -j4
685+
686+
- name: copy necessary dlls
687+
run: cp /clangarm64/bin/{OpenCL,vulkan-1}.dll .
688+
689+
- name: list features
690+
run: ./fastfetch --list-features
691+
692+
- name: run fastfetch
693+
run: time ./fastfetch -c presets/ci.jsonc --stat false
694+
695+
- name: run fastfetch --format json
696+
run: time ./fastfetch -c presets/ci.jsonc --format json
697+
698+
- name: run flashfetch
699+
run: time ./flashfetch
700+
701+
- name: print dependencies
702+
run: ldd fastfetch
703+
704+
- name: run tests
705+
run: ctest --output-on-failure
706+
707+
- name: create zip archive
708+
run: 7z a -tzip -mx9 -bd -y fastfetch-windows-aarch64.zip LICENSE *.dll fastfetch.exe flashfetch.exe presets
709+
710+
- name: create 7z archive
711+
run: 7z a -t7z -mx9 -bd -y fastfetch-windows-aarch64.7z LICENSE *.dll fastfetch.exe flashfetch.exe presets
712+
713+
- name: upload artifacts
714+
uses: actions/upload-artifact@v4
715+
with:
716+
name: fastfetch-windows-aarch64
717+
path: ./fastfetch-windows-aarch64.*
718+
657719
release:
658720
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'fastfetch-cli/fastfetch'
659721
name: Release
@@ -673,6 +735,7 @@ jobs:
673735
- netbsd-amd64
674736
- sunos-amd64
675737
- windows-amd64
738+
- windows-aarch64
676739
permissions:
677740
contents: write
678741
steps:

0 commit comments

Comments
 (0)