Skip to content

build(deps): bump actions/checkout from 5 to 6 #8

build(deps): bump actions/checkout from 5 to 6

build(deps): bump actions/checkout from 5 to 6 #8

name: CI - MacOS/Linux/Windows via Pixi
on:
push:
branches:
- devel
paths-ignore:
- .gitignore
- '*.md'
- LICENSE
- .pre-commit-config.yaml
pull_request:
paths-ignore:
- .gitignore
- '*.md'
- LICENSE
- .pre-commit-config.yaml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
loik-pixi:
name: Standard - ${{ matrix.os }} - Env ${{ matrix.environment }} ${{ matrix.build_type }}
runs-on: ${{ matrix.os }}
env:
CCACHE_BASEDIR: ${GITHUB_WORKSPACE}
CCACHE_DIR: ${GITHUB_WORKSPACE}/.ccache
CCACHE_COMPRESS: true
CCACHE_COMPRESSLEVEL: 6
# Since pixi will install a compiler, the compiler mtime will be changed.
# This can invalidate the cache (https://ccache.dev/manual/latest.html#config_compiler_check)
CCACHE_COMPILERCHECK: content
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, macos-15-intel]
environment: [default, python-oldest]
build_type: [Release, Debug]
include:
- os: windows-latest
build_type: Release
environment: default
- os: windows-latest
build_type: Release
environment: python-oldest
- os: windows-latest
build_type: Release
environment: clang-cl
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- uses: actions/cache@v4
with:
path: .ccache
key: ccache-macos-linux-windows-pixi-${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.environment }}-${{ github.sha }}
restore-keys: ccache-macos-linux-windows-pixi-${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.environment }}-
- uses: prefix-dev/[email protected]
with:
cache: true
environments: ${{ matrix.environment }}
- name: Clear ccache statistics [MacOS/Linux/Windows]
run: |
pixi run -e ${{ matrix.environment }} ccache -z
- name: Build LoIK [MacOS/Linux/Windows]
shell: bash -el {0}
env:
LOIK_BUILD_TYPE: ${{ matrix.build_type }}
CMAKE_BUILD_PARALLEL_LEVEL: 4
run: |
pixi run -e ${{ matrix.environment }} test
- name: Display ccache statistics [MacOS/Linux/Windows]
shell: bash -el {0}
run: |
pixi run -e ${{ matrix.environment }} ccache -sv
loik-pixi-build:
name: Pixi build - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, macos-15-intel, windows-latest]
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- uses: prefix-dev/[email protected]
env:
CMAKE_BUILD_PARALLEL_LEVEL: 4
with:
cache: true
environments: test-pixi-build
- name: Test package [MacOS/Linux/Windows]
run: |
pixi run -e test-pixi-build test
check:
if: always()
name: check-macos-linux-windows-pixi
needs:
- loik-pixi
- loik-pixi-build
runs-on: Ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}