Skip to content

Commit 6fa4e1c

Browse files
committed
introduce pixi
1 parent c4bca58 commit 6fa4e1c

File tree

5 files changed

+1690
-45
lines changed

5 files changed

+1690
-45
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SCM syntax highlighting & preventing 3-way merges
2+
pixi.lock merge=binary linguist-language=YAML linguist-generated=true -diff

.github/workflows/cmake.yml

Lines changed: 10 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
cxx: clang++
3232
- os: ubuntu-24.04
3333
build_type: Debug
34-
cc: clang-20
35-
cxx: clang++-20
34+
cc: clang
35+
cxx: clang++
3636
- os: macos-15
3737
build_type: Debug
3838
cc: clang
@@ -41,49 +41,21 @@ jobs:
4141
runs-on: ${{ matrix.os }}
4242

4343
steps:
44-
- name: Setup dependencies (Windows)
45-
if: runner.os == 'Windows'
46-
uses: MinoruSekine/setup-scoop@v4.0.1
47-
with:
48-
buckets: main
49-
apps: ninja
50-
51-
- name: Setup dependencies (Linux)
52-
if: runner.os == 'Linux'
53-
run: |
54-
sudo apt update
55-
sudo apt install -y gcc-14 g++-14 libstdc++-14-dev
56-
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 100
57-
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 100
58-
sudo update-alternatives --set gcc /usr/bin/gcc-14
59-
sudo update-alternatives --set g++ /usr/bin/g++-14
60-
wget https://apt.llvm.org/llvm.sh
61-
chmod +x llvm.sh
62-
sudo ./llvm.sh 20 all
63-
sudo apt install -y cmake ninja-build
64-
65-
- name: Setup dependencies (MacOS)
66-
if: runner.os == 'macOS'
67-
env:
68-
HOMEBREW_NO_AUTO_UPDATE: 1
69-
run: |
70-
brew install llvm@20 lld@20
71-
7244
- name: Checkout repository
7345
uses: actions/checkout@v4
7446

75-
- name: Setup msvc sysroot for cmake
76-
if: runner.os == 'Windows'
77-
uses: ilammy/msvc-dev-cmd@v1
47+
- name: Setup Pixi
48+
uses: prefix-dev/setup-pixi@v0.8.1
49+
with:
50+
pixi-version: v0.39.0
51+
environments: develop
52+
activate-environment: true
53+
cache: true
54+
locked: true
7855

7956
- name: Build clice
8057
shell: bash
8158
run: |
82-
if [[ "${{ runner.os }}" == "macOS" ]]; then
83-
export SDKROOT=$(xcrun --show-sdk-path)
84-
export PATH="/opt/homebrew/opt/llvm@20/bin:/opt/homebrew/opt/lld@20/bin:$PATH"
85-
fi
86-
8759
cmake -B build -G Ninja \
8860
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
8961
-DCMAKE_C_COMPILER=${{ matrix.cc }} \
@@ -93,9 +65,6 @@ jobs:
9365
9466
cmake --build build
9567
96-
- name: Install uv for integration tests
97-
uses: astral-sh/setup-uv@v6
98-
9968
- name: Run tests
10069
shell: bash
10170
run: |
@@ -104,9 +73,5 @@ jobs:
10473
EXE_EXT=".exe"
10574
fi
10675
107-
if [[ "${{ runner.os }}" == "macOS" ]]; then
108-
export PATH="/opt/homebrew/opt/llvm@20/bin:/opt/homebrew/opt/lld@20/bin:$PATH"
109-
fi
110-
11176
./build/bin/unit_tests${EXE_EXT} --test-dir="./tests/data"
11277
uv run --project tests pytest -s --log-cli-level=INFO tests/integration --executable=./build/bin/clice${EXE_EXT}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,6 @@ tests/unit/Local/
6060
.vs/
6161
.idea/
6262
.claude
63+
.env# pixi environments
64+
.pixi/*
65+
!.pixi/config.toml

0 commit comments

Comments
 (0)