Skip to content
Snippets Groups Projects
Unverified Commit e3624cec authored by Joris Vaillant's avatar Joris Vaillant
Browse files

ci: Fix ccache env variable and use Ninja in Linux/MacOS build

parent 5a36c3e9
No related branches found
No related tags found
No related merge requests found
......@@ -55,25 +55,24 @@ jobs:
mkdir build
cd build
export CXXFLAGS=${{ matrix.cxx_options }}
cmake .. \
-G "Ninja" \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCMAKE_CXX_FLAGS=${{ matrix.cxx_options }} \
-DPYTHON_EXECUTABLE=$(which python3) \
-DGENERATE_PYTHON_STUBS=ON \
-DHPP_FCL_HAS_QHULL=ON
make -j2
make build_tests
export CTEST_OUTPUT_ON_FAILURE=1
make test
make install
cmake --build . -j2
ctest --output-on-failure
cmake --install .
- name: Uninstall hpp-fcl
shell: bash -el {0}
run: |
cd build
make uninstall
cmake --build . --target uninstall
check:
if: always()
......
......@@ -5,10 +5,10 @@ jobs:
build:
runs-on: ${{ matrix.os }}
env:
ccache_basedir: "${github_workspace}"
ccache_dir: "${github_workspace}/.ccache"
ccache_compress: true
ccache_compresslevel: 6
CCACHE_BASEDIR: "${GITHUB_WORKSPACE}"
CCACHE_DIR: "${GITHUB_WORKSPACE}/.ccache"
CCACHE_COMPRESS: true
CCACHE_COMPRESSLEVEL: 6
strategy:
fail-fast: false
......@@ -37,14 +37,12 @@ jobs:
with:
activate-environment: fcl
auto-update-conda: true
environment-file: .github/workflows/conda/conda-env.yml
environment-file: .github/workflows/conda/conda-env-windows.yml
python-version: "3.10"
auto-activate-base: false
- name: Build FCL
shell: cmd /C CALL {0}
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
run: |
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64
......
......@@ -22,7 +22,7 @@ jobs:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
with:
activate-environment: fcl
environment-file: .github/workflows/conda/conda-env.yml
environment-file: .github/workflows/conda/conda-env-windows.yml
python-version: "3.10"
- name: Install cmake and update conda
run: |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment