build(windows): add arm64 support (#3905)
Signed-off-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Signed-off-by: Coia Prant <coiaprant@gmail.com> Co-authored-by: Ricky8955555 <rkmiao@duck.com> Co-authored-by: Mike Fara <mjfara@gmail.com> Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
This commit is contained in:
parent
cdc444314f
commit
d591643706
20 changed files with 242 additions and 56 deletions
25
.github/workflows/ci-windows.yml
vendored
25
.github/workflows/ci-windows.yml
vendored
|
|
@ -29,6 +29,11 @@ jobs:
|
|||
arch: x86_64
|
||||
msystem: ucrt64
|
||||
toolchain: ucrt-x86_64
|
||||
- name: Windows-ARM64
|
||||
os: windows-11-arm
|
||||
arch: aarch64
|
||||
msystem: clangarm64
|
||||
toolchain: clang-aarch64
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
|
@ -46,7 +51,9 @@ jobs:
|
|||
|
||||
- name: Update Windows dependencies
|
||||
env:
|
||||
MSYSTEM: ${{ matrix.msystem }}
|
||||
# MSYSTEM is a built-in environment variable of MSYS2.
|
||||
# Do not use this environment variable name.
|
||||
MATRIX_MSYSTEM: ${{ matrix.msystem }}
|
||||
TOOLCHAIN: ${{ matrix.toolchain }}
|
||||
shell: msys2 {0}
|
||||
run: |
|
||||
|
|
@ -62,17 +69,22 @@ jobs:
|
|||
"mingw-w64-${TOOLCHAIN}-curl-winssl"
|
||||
"mingw-w64-${TOOLCHAIN}-gcc"
|
||||
"mingw-w64-${TOOLCHAIN}-graphviz"
|
||||
"mingw-w64-${TOOLCHAIN}-MinHook"
|
||||
"mingw-w64-${TOOLCHAIN}-miniupnpc"
|
||||
"mingw-w64-${TOOLCHAIN}-nlohmann-json"
|
||||
"mingw-w64-${TOOLCHAIN}-nodejs"
|
||||
"mingw-w64-${TOOLCHAIN}-nsis"
|
||||
"mingw-w64-${TOOLCHAIN}-onevpl"
|
||||
"mingw-w64-${TOOLCHAIN}-openssl"
|
||||
"mingw-w64-${TOOLCHAIN}-opus"
|
||||
"mingw-w64-${TOOLCHAIN}-toolchain"
|
||||
)
|
||||
|
||||
if [[ "${MATRIX_MSYSTEM}" == "ucrt64" ]]; then
|
||||
dependencies+=(
|
||||
"mingw-w64-${TOOLCHAIN}-MinHook"
|
||||
"mingw-w64-${TOOLCHAIN}-nsis"
|
||||
)
|
||||
fi
|
||||
|
||||
# do not modify below this line
|
||||
|
||||
ignore_packages=()
|
||||
|
|
@ -83,7 +95,7 @@ jobs:
|
|||
tarball="${pkg}-${version}-any.pkg.tar.zst"
|
||||
|
||||
# download working version
|
||||
wget "https://repo.msys2.org/mingw/${MSYSTEM}/${tarball}"
|
||||
wget "https://repo.msys2.org/mingw/${MATRIX_MSYSTEM}/${tarball}"
|
||||
|
||||
tarballs="${tarballs} ${tarball}"
|
||||
done
|
||||
|
|
@ -189,6 +201,11 @@ jobs:
|
|||
mv ./cpack_artifacts/Sunshine.msi ../artifacts/Sunshine-${{ matrix.name }}-installer.msi
|
||||
mv ./cpack_artifacts/Sunshine.zip ../artifacts/Sunshine-${{ matrix.name }}-portable.zip
|
||||
|
||||
- name: Debug nsis
|
||||
if: always()
|
||||
shell: msys2 {0}
|
||||
run: cat ./build/cpack_artifacts/_CPack_Packages/win64/NSIS/NSISOutput.log || true
|
||||
|
||||
- name: Debug wix
|
||||
if: always()
|
||||
shell: msys2 {0}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue