Skip to content

Commit

Permalink
ci: Add a workflow that use Pixi and remove conda workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Oct 30, 2024
1 parent bc2fc49 commit 98181ea
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 131 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/conda/conda-env.yml

This file was deleted.

109 changes: 0 additions & 109 deletions .github/workflows/macos-linux-conda.yml

This file was deleted.

83 changes: 83 additions & 0 deletions .github/workflows/macos-linux-pixi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: CI - OSX/Linux via Pixi

on:
push:
paths-ignore:
- 'doc/**'
- 'scripts/**'
- '.gitlab-ci.yml'
- '.gitignore'
- '*.md'
- 'CHANGELOG.md'
- 'CITATION.cff'
- 'CITATIONS.bib'
pull_request:
paths-ignore:
- 'doc/'
- 'scripts/'
- '.gitlab-ci.yml'
- '.gitignore'
- '*.md'
- 'CHANGELOG.md'
- 'CITATION.cff'
- 'CITATIONS.bib'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
aligator-pixi:
name: ${{ 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

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, macos-13]
environment: [all, all-py39]
build_type: [Release, Debug]

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

- uses: actions/cache@v4
with:
path: .ccache
key: ccache-macos-linux-pixi-${{ matrix.os }}-${{ matrix.build_type }}-${{ github.sha }}
restore-keys: ccache-macos-linux-pixi-${{ matrix.os }}-${{ matrix.build_type }}-

- uses: prefix-dev/[email protected]
with:
pixi-version: v0.34.0
cache: true
environments: ${{ matrix.environment }}

- name: Build aligator
shell: bash -l {0}
env:
CMAKE_BUILD_PARALLEL_LEVEL: 4
ALIGATOR_BUILD_TYPE: ${{ matrix.build_type }}
run: |
pixi run -e ${{ matrix.environment }} test
check:
if: always()
name: check-macos-linux-pixi

needs:
- aligator-pixi

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) }}

0 comments on commit 98181ea

Please sign in to comment.