Skip to content

Commit

Permalink
ci: Use matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
agx committed Jul 29, 2024
1 parent 504a785 commit 761cab4
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,17 @@ name: eigenvalue build
run-name: Build on ${{ github.actor }} with gcc
on: [push]
jobs:
Build-gcc:
runs-on: ubuntu-24.04
build:
strategy:
matrix:
compiler: [gcc, clang]
steps:
- uses: actions/checkout@v4
- name: Install deps
run: sudo apt -y install --no-install-recommends $DEPS $CMATRIX_DEPS
run: sudo apt -y install --no-install-recommends ${{ matrix.compiler }} $DEPS $CMATRIX_DEPS
- name: setup
run: CC=gcc meson setup _build
run: CC=${{ matrix.compiler}} meson setup _build
- name: build
run: meson compile -C _build
- name: check
run: _buildr/run --help
Build-clang:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install deps
run: sudo apt -y install --no-install-recommends clang $DEPS $CMATRIX_DEPS
- name: setup
run: CC=clang meson setup _build
- name: check
run: _buildr/run --help

0 comments on commit 761cab4

Please sign in to comment.