Skip to content

Build Linux Java OSGi bundles for use in Dawn #18

Build Linux Java OSGi bundles for use in Dawn

Build Linux Java OSGi bundles for use in Dawn #18

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
#push:
# branches: [ master ]
#pull_request:
# branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
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"]
# 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
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
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ failure() }}
with:
limit-access-to-actor: true
- uses: actions/upload-artifact@v3
with:
name: hdf5-build-linux
path: dist