Skip to content

Commit

Permalink
switch to arm64 cross compile from native
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Mar 11, 2024
1 parent 95be746 commit 7db9184
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,25 @@ jobs:
matrix:
epics-target: [RTEMS-beatnik, linux-x86_64, linux-aarch64]
target: [developer, runtime]
os: [ubuntu-latest]
include:
- epics-target: RTEMS-beatnik
epics-host: linux-x86_64
name: epics-base-rtems-beatnik
base_image: ghcr.io/epics-containers/rtems-beatnik-runtime:6.1rc2
platform: linux/amd64
os: ubuntu-latest

- epics-target: linux-x86_64
epics-host: linux-x86_64
name: epics-base
base_image: ubuntu:22.04
platform: linux/amd64
os: ubuntu-latest

- epics-target: linux-aarch64
epics-host: linux-aarch64
# a temporary name until multi-arch is supported
name: epics-base-native-aarch64
epics-host: linux-x86_64
name: epics-base-aarch64
base_image: ubuntu:22.04
platform: linux/arm64
os: ubuntu-latest
platform: linux/amd64

runs-on: ${{ matrix.os }}
env:
Expand All @@ -57,13 +54,9 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3


- name: Build image
uses: docker/build-push-action@v5
with:
Expand Down Expand Up @@ -91,4 +84,4 @@ jobs:
EPICS_HOST_ARCH=${{ matrix.epics-host }}
BASE_IMAGE=${{ matrix.base_image }}
tags: ${{ env.TAG }}
push: true
push: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ repos/
repos-build/
*.log
*.out
*.code-workspace

0 comments on commit 7db9184

Please sign in to comment.