Skip to content

Commit

Permalink
ci: more tries
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Oct 28, 2024
1 parent 13f5376 commit 2bd06ea
Showing 1 changed file with 20 additions and 25 deletions.
45 changes: 20 additions & 25 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,36 @@ jobs:
build-project:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
config:
- {
os: ubuntu-latest,
cmake_options: "",
dependencies: "sudo apt update -yqq && sudo apt -yqq install libboost-dev"
}
- {
os: macos-latest,
cmake_options: "CMAKE_PREFIX_PATH=/opt/homebrew",
dependencies: "brew install boost eigen && brew link boost eigen"
}
- {
os: windows-latest,
cmake_options: "BOOST_ROOT=c:/local/boost_1_86_0",
dependencies: "choco install eigen -y --no-progress && choco install boost-msvc-14.3 -y --no-progress"
}

runs-on: ${{ matrix.config.os }}
steps:
- name: Checkout Project
uses: actions/checkout@v4
with:
submodules: recursive

- name: Dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt update -yqq
sudo apt install libboost-dev
- name: Dependencies
if: matrix.os == 'macos-latest'
run: |
brew install boost eigen
brew link boost eigen
- name: Dependencies
if: matrix.os == 'windows-latest'
run: |
choco install eigen -y --no-progress
choco install boost-msvc-14.3 -y --no-progress
- name: Bug
if: matrix.os == 'windows-latest'
shell: bash
run: |
find /c/local -name version.hpp
run: ${{ matrix.config.dependencies }}

- name: Build Project
uses: threeal/cmake-action@v2.0.0
with:
options: |
CMAKE_PREFIX_PATH="/opt/homebrew;c:/local/boost_1_86_0"
${{ matrix.config.cmake_options }}

0 comments on commit 2bd06ea

Please sign in to comment.