Skip to content

[ci] attempt to re-do CI using strategy matrix #1

[ci] attempt to re-do CI using strategy matrix

[ci] attempt to re-do CI using strategy matrix #1

Workflow file for this run

name: "linux"
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
build_config: ['debug', 'release']
compiler: ['clang-18', 'gcc-13']
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: 'Automatic LLVM Install'
run: sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
- name: 'Install newer GCC'
run: sudo apt install gcc-13
if: ${{ startsWith(${{ matrix.compiler }}, 'gcc') }}

Check failure on line 22 in .github/workflows/build_linux.yml

View workflow run for this annotation

GitHub Actions / linux

Invalid workflow file

The workflow is not valid. .github/workflows/build_linux.yml (Line: 22, Col: 13): Unexpected symbol: '${{'. Located at position 12 within expression: startsWith(${{ matrix.compiler
- name: 'Configure psyc ${{ matrix.compiler }}_${{ matrix.build_config }}'
run: cmake --preset ci_${{ matrix.build_config }} -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_C_COMPILER=${{ matrix.compiler }}
working-directory: cpp
- name: 'Build psyc ${{ matrix.compiler }}_${{ matrix.build_config }}'
run: cmake --build ./build/ci_${{ matrix.build_config }} --target psyc
working-directory: cpp
- name: 'Compile a simple test program'
run: ./cpp/build/ci_${{ matrix.build_config }}/psyc -v ./samples/scratchpad.psy --dump-ast --dump-ir