Skip to content

Commit 1e7af28

Browse files
committed
build: add pixi for cmake and check ci
1 parent 1da3457 commit 1e7af28

File tree

4 files changed

+765
-63
lines changed

4 files changed

+765
-63
lines changed

.github/workflows/check-format.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,18 @@ jobs:
1515
- name: Checkout code
1616
uses: actions/checkout@v4
1717

18-
- name: Install uv
19-
uses: astral-sh/setup-uv@v6
18+
- name: Setup Pixi
19+
uses: prefix-dev/setup-pixi@v0.9.3
20+
with:
21+
pixi-version: v0.61.0
22+
activate-environment: true
23+
cache: true
24+
locked: true
2025

2126
- name: Run check
2227
id: precommit
2328
run: |
24-
uv venv
25-
uv pip install pre-commit
26-
uv run pre-commit run --all-files
29+
pixi run ci-check
2730
continue-on-error: true
2831

2932
- name: Show diff on failure

.github/workflows/cmake.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,10 @@ jobs:
4848
cache: true
4949
locked: true
5050

51-
- name: Build clice
52-
shell: bash
51+
- name: Build
5352
run: |
54-
cmake -B build -G Ninja \
55-
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
56-
-DCMAKE_TOOLCHAIN_FILE=cmake/toolchain.cmake \
57-
-DCLICE_ENABLE_TEST=ON \
58-
-DCLICE_CI_ENVIRONMENT=ON
59-
cmake --build build
53+
pixi run ci-cmake-build ${{ matrix.build_type }}
6054
61-
- name: Run tests
62-
shell: bash
55+
- name: Test
6356
run: |
64-
EXE_EXT=""
65-
if [[ "${{ runner.os }}" == "Windows" ]]; then
66-
EXE_EXT=".exe"
67-
fi
68-
./build/bin/unit_tests${EXE_EXT} --test-dir="./tests/data"
69-
uv run --project tests pytest -s --log-cli-level=INFO tests/integration --executable=./build/bin/clice${EXE_EXT}
57+
pixi run ci-cmake-test

0 commit comments

Comments
 (0)