Create release task, disable Windows arm64

This commit is contained in:
Luke Street
2023-12-20 18:50:34 -07:00
parent 1d9deadf3b
commit d43c666b9e
5 changed files with 19 additions and 19 deletions
+11 -16
View File
@@ -59,8 +59,8 @@ jobs:
include:
- name: x86_64
sys: clang64
- name: arm64
sys: clangarm64
# - name: arm64
# sys: clangarm64
fail-fast: false
runs-on: windows-latest
steps:
@@ -82,9 +82,9 @@ jobs:
release:
name: Release
# if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: [ build-linux ]
needs: [ build-linux, build-macos, build-windows ]
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
@@ -92,15 +92,10 @@ jobs:
path: artifacts
- name: List artifacts
run: ls -R artifacts
# - name: Rename artifacts
# working-directory: artifacts
# run: |
# mkdir ../out
# for i in */*/$BUILD_PROFILE/$CARGO_BIN_NAME*; do
# mv "$i" "../out/$(sed -E "s/([^/]+)\/[^/]+\/$BUILD_PROFILE\/($CARGO_BIN_NAME)/\2-\1/" <<< "$i")"
# done
# ls -R ../out
# - name: Release
# uses: softprops/action-gh-release@v1
# with:
# files: out/*
- name: Create archives
working-directory: artifacts
run: for f in *; do zip -jr $f.zip $f; done
- name: Release
uses: softprops/action-gh-release@v1
with:
files: artifacts/*.zip
+5 -1
View File
@@ -9,11 +9,15 @@ RUN wget -qO- https://ftp.gnu.org/gnu/binutils/binutils-2.41.tar.xz | tar -xJ
# Build binutils
WORKDIR /binutils-2.41
RUN ./configure --target=powerpc-unknown-eabi --prefix=/target --disable-nls --disable-shared \
RUN ./configure --target=powerpc-eabi --prefix=/target --disable-nls --disable-shared \
&& make -j$(nproc) configure-host \
&& make -j$(nproc) LDFLAGS=-all-static \
&& make install-strip
# Rename binaries
RUN cd /target/bin \
&& for f in *; do mv $f powerpc-eabi-$f; done
# Export binary (usage: docker build --target export --output build .)
FROM scratch AS export
COPY --from=build /target/* .
+1
View File
@@ -0,0 +1 @@
Cross-platform builds of `powerpc-eabi` binutils.
+1 -1
View File
@@ -3,7 +3,7 @@ PREFIX="$(pwd)/build"
wget -qO- https://ftp.gnu.org/gnu/binutils/binutils-2.41.tar.xz | tar -xJ
cd binutils-2.41
export CFLAGS="-arch arm64 -arch x86_64 -mmacosx-version-min=10.11"
./configure --target=powerpc-unknown-eabi --prefix="$PREFIX" --disable-nls --disable-shared --without-zstd
./configure --target=powerpc-eabi --prefix="$PREFIX" --disable-nls --disable-shared --without-zstd
make -j$(nproc) configure-host
make -j$(nproc)
make install-strip
+1 -1
View File
@@ -2,7 +2,7 @@
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
./configure --target=powerpc-eabi --prefix="$PREFIX" --disable-nls --disable-shared
make -j$(nproc) configure-host
make -j$(nproc)
make install-strip