Skip to content

Commit

Permalink
[CI] Test GALAHAD on linux ARM (#375)
Browse files Browse the repository at this point in the history
* [CI] Test GALAHAD on linux ARM

* Update .github/workflows/meson.yml

* Linux ARM doesn't support quadruple precision
  • Loading branch information
amontoison authored Jan 24, 2025
1 parent a0207ad commit 1f13ff9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/meson/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ runs:
echo "GALAHAD=$GITHUB_WORKSPACE" >> $GITHUB_ENV
echo "DEPS=$GITHUB_WORKSPACE/.." >> $GITHUB_ENV
echo "CUTEST=$GITHUB_WORKSPACE/../CUTEst" >> $GITHUB_ENV
if [[ "${{ inputs.os }}" == "ubuntu-24.04-arm" ]]; then
echo "LIBDIR=lib" >> $GITHUB_ENV
echo "DLEXT=so" >> $GITHUB_ENV
echo "PLATFORM=aarch64-linux-gnu" >> $GITHUB_ENV
echo "JULIA_GALAHAD_LIBRARY_PATH=$GITHUB_WORKSPACE/galahad/lib" >> $GITHUB_ENV
fi
if [[ "${{ inputs.os }}" == "ubuntu-latest" ]]; then
echo "LIBDIR=lib" >> $GITHUB_ENV
echo "DLEXT=so" >> $GITHUB_ENV
Expand Down Expand Up @@ -67,7 +73,7 @@ runs:
- name: Set the environment variables LIBRARY_PATH, LD_LIBRARY_PATH and DYLD_LIBRARY_PATH
shell: bash
run: |
if [[ "${{ inputs.os }}" == "ubuntu-latest" ]]; then
if [[ "${{ inputs.os }}" == "ubuntu-latest" || "${{ inputs.os }}" == "ubuntu-24.04-arm" ]]; then
echo "LIBRARY_PATH=$LIBRARY_PATH:$GITHUB_WORKSPACE/galahad/lib:$GITHUB_WORKSPACE/../deps/lib:$GITHUB_WORKSPACE/../CUTEst/lib" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GITHUB_WORKSPACE/galahad/lib:$GITHUB_WORKSPACE/../deps/lib:$GITHUB_WORKSPACE/../CUTEst/lib" >> $GITHUB_ENV
fi
Expand Down Expand Up @@ -269,7 +275,7 @@ runs:
if [[ "${{ inputs.compiler }}" == "nvidia-hpc" || "${{ inputs.compiler }}" == "intel-classic" || ( "${{ inputs.compiler }}" == "intel" && "${{ inputs.os }}" == "windows-latest" ) ]]; then
SSIDS="false"
fi
if [[ "${{ inputs.compiler }}" == "nvidia-hpc" || "${{ inputs.compiler }}" == "intel-classic" || "${{ inputs.compiler }}" == "intel" ]]; then
if [[ "${{ inputs.os }}" == "ubuntu-24.04-arm" || "${{ inputs.compiler }}" == "nvidia-hpc" || "${{ inputs.compiler }}" == "intel-classic" || "${{ inputs.compiler }}" == "intel" ]]; then
QUADRUPLE="false"
fi
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,28 @@ jobs:
version: ${{ matrix.version }}
int: ${{ matrix.int }}

arm-linux-build:
name: ${{ matrix.os }}/${{ matrix.compiler }}-v${{ matrix.version }}/Int${{ matrix.int }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-24.04-arm']
arch: ['arm64']
compiler: ['gcc']
version: ['14']
int: ['32', '64']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run common setup
uses: ./.github/meson
with:
os: ${{ matrix.os }}
compiler: ${{ matrix.compiler }}
version: ${{ matrix.version }}
int: ${{ matrix.int }}

# intel-classic-build:
# name: ${{ matrix.os }}/${{ matrix.compiler }}-v${{ matrix.version }}/Int${{ matrix.int }}
# runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 1f13ff9

Please sign in to comment.