Add Windows builds (x86_64, arm64)

This commit is contained in:
Luke Street
2023-12-20 15:26:08 -07:00
parent 10da304e57
commit 1d9deadf3b
2 changed files with 36 additions and 0 deletions
+28
View File
@@ -52,6 +52,34 @@ jobs:
name: macos-universal
path: build/bin
build-windows:
name: Build Windows
strategy:
matrix:
include:
- name: x86_64
sys: clang64
- name: arm64
sys: clangarm64
fail-fast: false
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.sys }}
install: make texinfo
pacboy: clang:p
- name: Build
shell: msys2 {0}
run: ./build-windows.sh
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: windows-${{ matrix.name }}
path: build/bin
release:
name: Release
# if: startsWith(github.ref, 'refs/tags/')
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash -ex
PREFIX="$(pwd)/build"
wget -qO- https://ftp.gnu.org/gnu/binutils/binutils-2.41.tar.xz | tar -xJ
cd binutils-2.41
./configure --target=powerpc-unknown-eabi --prefix="$PREFIX" --disable-nls --disable-shared
make -j$(nproc) configure-host
make -j$(nproc)
make install-strip