Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actually enable the cache #5

Merged
merged 2 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/ci/colcon_defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
# BFD in conda is not compiled with fPIC
"-DSTACK_DETAILS_AUTO_DETECT:BOOL=FALSE",
"-DSTACK_DETAILS_BFD:BOOL=FALSE",

# Docs not necessary
"-DBUILD_DOCS:BOOL=FALSE"
],
"event-handlers": [
"console_cohesion+",
Expand Down
23 changes: 22 additions & 1 deletion .github/workflows/pixi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,26 @@ jobs:
cache_key: ${{ matrix.label }}
upload_buildcache_log: 'false'
zero_buildcache_stats: 'true'

- run: pixi run sync
- run: pixi run build

- name: Export compiler variables [Linux]
if: contains(matrix.os, 'ubuntu')
shell: bash -l {0}
run: |
echo "BUILDCACHE_CC=x86_64-conda-linux-gnu-gcc" >> $GITHUB_ENV
echo "BUILDCACHE_CXX=x86_64-conda-linux-gnu-g++" >> $GITHUB_ENV

- run: |
pixi run build --cmake-args \
-GNinja \
--no-warn-unused-cli \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
-DCMAKE_C_COMPILER_LAUNCHER=buildcache \
-DCMAKE_CXX_COMPILER_LAUNCHER=buildcache \
-DSTACK_DETAILS_AUTO_DETECT:BOOL=FALSE \
-DSTACK_DETAILS_BFD:BOOL=FALSE \
-DBUILD_DOCS:BOOL=FALSE \
-DCMAKE_C_COMPILER=$BUILDCACHE_CC \
-DCMAKE_CXX_COMPILER=$BUILDCACHE_CXX
Loading
Loading