mirror of
https://github.com/encounter/gc-wii-binutils.git
synced 2026-07-10 03:18:49 -07:00
Add Windows builds (x86_64, arm64)
This commit is contained in:
@@ -52,6 +52,34 @@ jobs:
|
|||||||
name: macos-universal
|
name: macos-universal
|
||||||
path: build/bin
|
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:
|
release:
|
||||||
name: Release
|
name: Release
|
||||||
# if: startsWith(github.ref, 'refs/tags/')
|
# if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user