We don't need the repos file, upstream is fixed #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pixi-based CI | |
on: [push, pull_request] | |
jobs: | |
default: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
env: | |
BUILDCACHE_MAX_CACHE_SIZE: 2000000000 # optional: Need a bigger cache? | |
# BUILDCACHE_LOG_FILE: ${{ matrix.label }}.buildcache.log # optional: include log output | |
# BUILDCACHE_DEBUG: 2 # optional: debug level, less is more | |
BUILDCACHE_DIRECT_MODE: true # optional: Allow direct caching | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: prefix-dev/[email protected] | |
with: | |
pixi-version: v0.17.1 | |
cache: true | |
- uses: mjcarroll/buildcache-action@v2 | |
with: | |
cache_key: ${{ matrix.label }} | |
upload_buildcache_log: 'false' | |
zero_buildcache_stats: 'true' | |
- run: pixi run sync | |
- 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 | |
echo "CMAKE_C_COMPILER_LAUNCHER=buildcache" >> $GITHUB_ENV | |
echo "CMAKE_CXX_COMPILER_LAUNCHER=buildcache" >> $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 |