Skip to content

Commit

Permalink
Create cmake_allOS
Browse files Browse the repository at this point in the history
  • Loading branch information
OthmanB authored Feb 28, 2024
1 parent 8acc141 commit 7274b77
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/cmake_allOS
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CMake

on:
push:
branches: [ "beta" ]
pull_request:
branches: [ "beta" ]

env:
BUILD_TYPE: Release
EIGEN3_INCLUDE_DIR: /usr/include/eigen3

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3

- name: Install Dependencies (Ubuntu)
if: startsWith(runner.os, 'Linux')
run: |
sudo apt-get update
sudo apt-get install -y gnuplot
sudo apt-get install -y libeigen3-dev
sudo apt-get install -y libboost-all-dev
sudo apt-get install -y libgsl-dev
sudo apt-get install -y build-essential
sudo apt-get install -y cmake

- name: Install Dependencies (macOS)
if: startsWith(runner.os, 'macOS')
run: |
brew install gnuplot eigen boost gsl cmake

- name: Install Dependencies (Windows)
if: startsWith(runner.os, 'Windows')
run: |
choco install gnuplot eigen boost gsl cmake --force

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

0 comments on commit 7274b77

Please sign in to comment.