Skip to content

Commit

Permalink
github: Add build matrix for OS and compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
saprykin committed Jul 29, 2023
1 parent b643fc5 commit 242ac28
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,22 @@ name: plibsys-ci
on: [push]
jobs:
main:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
CC: gcc
CXX: g++
- os: ubuntu-latest
CC: clang
CXX: clang++
- os: macos-latest
CC: clang
CXX: clang++
- os: macos-latest
CC: gcc-12
CXX: g++-12
steps:
- uses: actions/checkout@v3
- name: config
Expand All @@ -11,7 +26,7 @@ jobs:
cd ..
mkdir ./plibsys-build
cd ./plibsys-build
cmake -DCMAKE_BUILD_TYPE=Release ../plibsys
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPIELR=${{ CC }} -DCMAKE_CXX_COMPILER=${{ CXX }} ../plibsys
- name: build
run: |
pwd
Expand Down

0 comments on commit 242ac28

Please sign in to comment.