Skip to content

Commit e71bba0

Browse files
committed
Add Windows arm64 builds
1 parent 795d513 commit e71bba0

File tree

2 files changed

+90
-0
lines changed

2 files changed

+90
-0
lines changed

.github/workflows/build.yml

+65
Original file line numberDiff line numberDiff line change
@@ -421,3 +421,68 @@ jobs:
421421
ccache --show-stats --verbose
422422
env:
423423
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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
base
2+
base-devel
3+
filesystem
4+
git
5+
mingw-w64-clang-aarch64-SDL2
6+
mingw-w64-clang-aarch64-ccache
7+
mingw-w64-clang-aarch64-clang
8+
mingw-w64-clang-aarch64-cmake
9+
mingw-w64-clang-aarch64-fftw
10+
mingw-w64-clang-aarch64-fltk
11+
mingw-w64-clang-aarch64-fluidsynth
12+
mingw-w64-clang-aarch64-libgig
13+
mingw-w64-clang-aarch64-libsamplerate
14+
mingw-w64-clang-aarch64-libsndfile
15+
mingw-w64-clang-aarch64-lilv
16+
mingw-w64-clang-aarch64-lv2
17+
mingw-w64-clang-aarch64-qt5-base
18+
mingw-w64-clang-aarch64-qt5-svg
19+
mingw-w64-clang-aarch64-suil
20+
mingw-w64-clang-aarch64-stk
21+
mingw-w64-clang-x86_64-nsis
22+
mingw-w64-clang-x86_64-ccache
23+
msys2-runtime
24+
perl-List-MoreUtils
25+
perl-XML-Parser

0 commit comments

Comments
 (0)