Skip to content

Commit

Permalink
Use new Linux ARM64 runner in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterC-DLS committed Jan 18, 2025
1 parent d909302 commit d1d7efe
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/build-java-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Build Linux Java OSGi bundles for use in Dawn

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
# Triggers the workflow on push or pull request events but only for the main branch
#push:
# branches: [ master ]
# branches: [ main ]
#pull_request:
# branches: [ master ]
# branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -16,27 +16,27 @@ on:
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

strategy:
max-parallel: 2
matrix:
ARCH: [x86_64, aarch64]
PLAT: ["2014"]
include:
- ARCH: x86_64
OS: ubuntu-24.04
PLAT: "2014"
- ARCH: aarch64
OS: ubuntu-24.04-arm
PLAT: "2014"

# The type of runner that the job will run on
runs-on: ${{ matrix.OS }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

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

# Use docker image of Centos 6 or 7 with some devel packages as defined in PEP571 and PEP599
- name: Make Linux bindings
- name: Make Linux bindings (${{ matrix.ARCH }})
run: |
docker run --rm --env="ARCH=${{ matrix.ARCH }}" --env="PLAT_OS=linux" --volume $(pwd):/io ghcr.io/diamondlightsource/manylinux-dls-${{ matrix.PLAT }}_${{ matrix.ARCH }}:latest /bin/bash /io/releng/build_linux_bindings.sh
Expand Down

0 comments on commit d1d7efe

Please sign in to comment.