Skip to content

Commit

Permalink
[ci] attempt to re-do CI using strategy matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
harrand committed May 18, 2024
1 parent 4b664fc commit 0b307d3
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 93 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/build_clang.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/build_gcc.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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') }}

- 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

17 changes: 0 additions & 17 deletions .github/workflows/code_build_debug.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/code_build_release.yml

This file was deleted.

0 comments on commit 0b307d3

Please sign in to comment.