mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
82 lines
2.1 KiB
YAML
82 lines
2.1 KiB
YAML
name: Windows ARM64 (MSYS2)
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
windows_arm64:
|
|
runs-on: windows-11-arm
|
|
defaults:
|
|
run:
|
|
shell: msys2 {0}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: msys2/setup-msys2@v2
|
|
with:
|
|
msystem: CLANGARM64
|
|
update: true
|
|
install: >-
|
|
git
|
|
bsdtar
|
|
mingw-w64-clang-aarch64-toolchain
|
|
mingw-w64-clang-aarch64-meson
|
|
mingw-w64-clang-aarch64-ninja
|
|
mingw-w64-clang-aarch64-pkgconf
|
|
mingw-w64-clang-aarch64-gettext-tools
|
|
mingw-w64-clang-aarch64-libxml2
|
|
mingw-w64-clang-aarch64-winpthreads
|
|
mingw-w64-clang-aarch64-python-cffi
|
|
mingw-w64-clang-aarch64-gtk2
|
|
mingw-w64-clang-aarch64-gtk-update-icon-cache
|
|
mingw-w64-clang-aarch64-luajit
|
|
mingw-w64-clang-aarch64-desktop-file-utils
|
|
|
|
- name: Configure
|
|
run: |
|
|
set -euxo pipefail
|
|
export PATH="/clangarm64/bin:$PATH"
|
|
|
|
# Sanity: ensure we're using the CLANGARM64 msgfmt (with ITS data)
|
|
which msgfmt
|
|
msgfmt --version
|
|
|
|
rm -rf build package
|
|
meson setup build \
|
|
-Dtext-frontend=true \
|
|
-Ddbus=disabled \
|
|
-Dwith-upd=false \
|
|
-Dwith-perl=false \
|
|
-Dc_link_args=-lwinpthread \
|
|
-Dcxx_link_args=-lwinpthread
|
|
|
|
- name: Build
|
|
run: |
|
|
set -euxo pipefail
|
|
export PATH="/clangarm64/bin:$PATH"
|
|
ninja -C build
|
|
|
|
- name: Test
|
|
run: |
|
|
set -euxo pipefail
|
|
export PATH="/clangarm64/bin:$PATH"
|
|
ninja -C build test
|
|
|
|
- name: Stage install (portable zip)
|
|
run: |
|
|
set -euxo pipefail
|
|
export PATH="/clangarm64/bin:$PATH"
|
|
DESTDIR="$PWD/package" ninja -C build install
|
|
cd package
|
|
bsdtar -acf ../zoitechat-windows-arm64.zip .
|
|
cd ..
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: zoitechat-windows-arm64
|
|
path: zoitechat-windows-arm64.zip
|