Skip to content

Add almalinux:9 as a test platform #321

Add almalinux:9 as a test platform

Add almalinux:9 as a test platform #321

Workflow file for this run

# Name of the workflow
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main and stable branches
on:
push:
branches: [ main, stable ]
pull_request:
branches: [ main, stable ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# Main building and testing
build-test:
# Define the platforms to run on. Later determines the Docker image to be used
strategy:
matrix:
platform: [ almalinux:8, almalinux:9, almalinux:10, ubuntu:22.04, ubuntu:24.04 ]
compiler: [ gcc ]
runner: [ ubuntu-latest, ubuntu-24.04-arm ]
include:
# On Alma 9 we also test clang
- platform: almalinux:9
compiler: clang
# The type of runner that the job will run on
runs-on: ubuntu-24.04-arm
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out our repository under $GITHUB_WORKSPACE, so our job can access it
- uses: actions/checkout@v2
with:
submodules: recursive
# Sets up useful environment variables
- name: Setup environment variables
run: |
echo "DIMAGE=$PLATFORM" >> $GITHUB_ENV
echo "PLATFORM=$PLATFORM" >> $GITHUB_ENV
echo "COMPILER=$COMPILER" >> $GITHUB_ENV
echo "ARCH=$RUNNER" >> $GITHUB_ENV
env:
PLATFORM: ${{ matrix.platform }}
COMPILER: ${{ matrix.compiler }}
ARCH: ${{ matrix.runner }}
# Pulls the associated Docker image
- name: Docker pull
run: docker pull $DIMAGE
# Builds the code and runs the test
- name: Build and test
run: |
echo "Starting run for $PLATFORM, compiler suite $COMPILER"
if [[ $DIMAGE =~ (c8-dev|almalinux|ubuntu) ]]
then
docker run -e PLATFORM -e COMPILER -v $(pwd):/mnt $DIMAGE /mnt/.github/scripts/build-test.sh;
else
echo "Unkown Docker Image: $DIMAGE";
fi