@@ -421,3 +421,68 @@ jobs:
421
421
ccache --show-stats --verbose
422
422
env :
423
423
CCACHE_MAXSIZE : 500MB
424
+ msys2 :
425
+ name : msys2-clangarm64
426
+ runs-on : windows-11-arm
427
+ defaults :
428
+ run :
429
+ shell : msys2 {0}
430
+ env :
431
+ CMAKE_OPTS : >-
432
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo
433
+ -DUSE_COMPILE_CACHE=ON
434
+ -DCPACK_NSIS_EXECUTABLE=/clang64/bin/makensis.exe
435
+ CCACHE_MAXSIZE : 0
436
+ CCACHE_NOCOMPRESS : 1
437
+ MAKEFLAGS : -j2
438
+ steps :
439
+ - name : Check out
440
+ uses : actions/checkout@v3
441
+ with :
442
+ fetch-depth : 0
443
+ submodules : recursive
444
+ - name : Cache msys2 dependencies
445
+ id : cache-deps
446
+ uses : actions/cache@v3
447
+ with :
448
+ key : msys2-clangarm64-${{ hashFiles('.github/workflows/deps-msys2-clangarm64.txt') }}
449
+ restore-keys : |
450
+ msys2-clangarm64-
451
+ path : \msys64\var\cache\pacman\pkg
452
+ - name : Install msys2
453
+ uses : msys2/setup-msys2@v2
454
+ with :
455
+ msystem : CLANGARM64
456
+ update : true
457
+ - name : Install dependencies
458
+ run : pacman --needed --noconfirm -S - < .github/workflows/deps-msys2-clangarm64.txt
459
+ - name : Cache ccache data
460
+ uses : actions/cache@v3
461
+ with :
462
+ key : ccache-${{ github.job }}-${{ github.ref }}-${{ github.run_id }}
463
+ restore-keys : |
464
+ ccache-${{ github.job }}-${{ github.ref }}-
465
+ ccache-${{ github.job }}-
466
+ path : ~\AppData\Local\ccache
467
+ - name : Configure
468
+ run : |
469
+ /clang64/bin/ccache.exe --zero-stats
470
+ cmake -B build $CMAKE_OPTS
471
+ - name : Build
472
+ run : cmake --build build
473
+ - name : Package
474
+ run : cmake --build build --target package
475
+ - name : Upload artifacts
476
+ uses : actions/upload-artifact@v4
477
+ with :
478
+ name : msys2-clangarm64
479
+ path : build\lmms-*.exe
480
+ - name : Trim ccache and print statistics
481
+ run : |
482
+ /clang64/bin/ccache.exe --cleanup
483
+ echo "[ccache config]"
484
+ /clang64/bin/ccache.exe --show-config
485
+ echo "[ccache stats]"
486
+ /clang64/bin/ccache.exe --show-stats --verbose
487
+ env :
488
+ CCACHE_MAXSIZE : 500MB
0 commit comments