Skip to content

Commit

Permalink
CI action config update
Browse files Browse the repository at this point in the history
  • Loading branch information
dgirardeau committed Jan 4, 2025
1 parent 4514bbc commit 3c06efd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .ci/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CCCoreLib
channels:
- conda-forge
dependencies:
- cgal=5.*
- ninja
- qt=5.15.*
- cgal=5.*
- tbb-devel=2021.*
15 changes: 5 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ on: [ push, pull_request ]

jobs:
build:
name: ${{ matrix.config.name }} SCALAR_DOUBLE=${{ matrix.scalar_double }}
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
if: "!contains(github.event.head_commit.message, '[skip ci]')"

strategy:
fail-fast: false
matrix:
scalar_double: ["OFF", "ON"]
config:
- {
name: "Windows MSVC",
Expand All @@ -35,10 +34,10 @@ jobs:
- name: Install Dependencies
uses: conda-incubator/setup-miniconda@v3
with:
architecture: ${{ matrix.config.os == 'macos-latest' && 'arm64' || 'x64' }}
activate-environment: CCCoreLib
auto-activate-base: false
environment-file: .ci/conda.yml
mamba-version: '*'

- name: Configure MSVC console (Windows)
if: matrix.config.os == 'windows-latest'
Expand All @@ -65,7 +64,6 @@ jobs:
-G "${{ matrix.config.generator }}" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH="$CONDA_LIB_DIR" \
-DCCCORELIB_SCALAR_DOUBLE=${{ matrix.scalar_double }} \
-DCCCORELIB_USE_CGAL=FALSE \
-DCCCORELIB_USES_TBB=TRUE \
.
Expand All @@ -82,8 +80,7 @@ jobs:
-B cccorelib-build \
-G "${{ matrix.config.generator }}" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH="$CONDA_LIB_DIR" \
-DCCCORELIB_SCALAR_DOUBLE=${{ matrix.scalar_double }} \
-DCMAKE_PREFIX_PATH="$CONDA_LIB_DIR" \
-DCCCORELIB_USE_CGAL=FALSE \
-DCCCORELIB_USES_TBB=TRUE \
.
Expand All @@ -92,19 +89,18 @@ jobs:
run: cmake --build cccorelib-build --parallel

ubuntu-build:
name: Ubuntu ${{ matrix.compiler }} SCALAR_DOUBLE=${{ matrix.scalar_double }}
name: Ubuntu ${{ matrix.compiler }}
runs-on: ubuntu-22.04
if: "!contains(github.event.head_commit.message, '[skip ci]')"

strategy:
fail-fast: false
matrix:
scalar_double: [ "OFF", "ON" ]
compiler: ["GCC", "Clang"]

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -138,7 +134,6 @@ jobs:
-S .
-G Ninja
-DCMAKE_BUILD_TYPE=Release
-DCCCORELIB_SCALAR_DOUBLE=${{ matrix.scalar_double }}
-DCCCORELIB_USE_CGAL=TRUE
-DCCCORELIB_USES_TBB=TRUE
.
Expand Down

0 comments on commit 3c06efd

Please sign in to comment.