Skip to content

Add matrix compiler for each action containers #9

Add matrix compiler for each action containers

Add matrix compiler for each action containers #9

Workflow file for this run

name: Ubuntu-Latest - Build Release
on: [push, pull_request]
permissions:
contents: write
actions: write
id-token: write
attestations: write
packages: write
deployments: write
jobs:
build:
strategy:
matrix:
compiler: [gcc, clang]
runs-on: ubuntu-latest
steps:
- name: Checkout repository ${{ github.repository }} on a branch ${{ github.ref_name }} triggered by ${{ github.event_name }}
uses: actions/checkout@v4
- run: "echo the ${{ github.repository }} has been cloned in the container !"
- name: 🔄 Installing task...
uses: arduino/setup-task@v2
with:
version: 3.x
- uses: actions/setup-python@v5
- name: 🔄 Installing Meson package build system...
run: pip install meson
- name: 🔄 Installing Dependencies...
run: |
echo "📦 Installing libcriterion-dev, Ninja"
sudo apt-get update && apt-get install -y libcriterion-dev ninja-build
echo "✅ Dependencies installed!"
- name: Run build release task...
env:
CC: ${{ matrix.compiler }}
run: |
echo "🏗️ Setting up Meson build system..."
task build
echo "🎉 Build completed with Meson!"