Skip to content

Commit

Permalink
Disable arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyparrish committed Mar 11, 2024
1 parent 02053dd commit 68d7b24
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/sgdk-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ on:
- 'sample/**'
- '**.md'

env:
# TODO: arm64 images are currently disabled because they keep hanging in the
# GitHub Actions environment.
#PLATFORMS: linux/amd64,linux/arm64
PLATFORMS: linux/amd64

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -32,8 +38,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# TODO: arm64 images are currently disabled because they keep hanging in
# the GitHub Actions environment.
#- name: Set up QEMU
# uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -60,10 +68,7 @@ jobs:
with:
file: deps/gcc.Dockerfile
context: deps/
platforms: linux/amd64,linux/arm64
# Disable parallel builds, which are hanging in GitHub Actions.
build-args: |
PARALLEL_BUILD=0
platforms: ${{ env.PLATFORMS }}
tags: ghcr.io/${{ github.actor }}/sgdk-m68k-gcc:latest
push: ${{ github.event_name == 'push' }}

Expand All @@ -80,7 +85,7 @@ jobs:
with:
file: Dockerfile
context: .
platforms: linux/amd64,linux/arm64
platforms: ${{ env.PLATFORMS }}
build-args: |
BASE_IMAGE=ghcr.io/${{ github.actor }}/sgdk-m68k-gcc
tags: ghcr.io/${{ github.actor }}/sgdk:latest
Expand Down
6 changes: 3 additions & 3 deletions deps/gcc.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ ENV INSTALLDIR="$BASEDIR/install"
ENV STAGINGDIR="$BASEDIR/staging"
ENV PARALLEL_BUILD="$PARALLEL_BUILD"

# Choose parallel build or not. Parallel builds are hanging under qemu on
# GitHub, so we serialize building there. If parallel builds are disabled,
# replace nproc so it always says "1".
# Choose parallel build or not. Parallel builds can cause issues with
# low-memory hosts or emulation. If parallel builds are disabled, replace
# nproc so it always says "1".
RUN echo "nproc = $(nproc)"
RUN echo "PARALLEL_BUILD = $PARALLEL_BUILD"
RUN if [[ "$PARALLEL_BUILD" == 0 ]]; then echo -e "#!/bin/sh\necho 1" > /usr/local/bin/nproc; chmod 755 /usr/local/bin/nproc; fi
Expand Down

0 comments on commit 68d7b24

Please sign in to comment.