Skip to content

Commit 632aa87

Browse files
authored
docs: add pixi (#643)
* docs: add pixi - add sccache for rust Signed-off-by: Keming <[email protected]> * add cache for pages Signed-off-by: Keming <[email protected]> * fix ci Signed-off-by: Keming <[email protected]> --------- Signed-off-by: Keming <[email protected]>
1 parent ae7ed6a commit 632aa87

File tree

6 files changed

+23
-5
lines changed

6 files changed

+23
-5
lines changed

.github/workflows/check.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ concurrency:
2929
group: ${{ github.ref }}-${{ github.workflow }}
3030
cancel-in-progress: true
3131

32+
env:
33+
SCCACHE_GHA_ENABLED: "true"
34+
RUSTC_WRAPPER: "sccache"
35+
3236
jobs:
3337
lint:
3438
runs-on: ubuntu-latest
@@ -39,9 +43,10 @@ jobs:
3943
uses: astral-sh/setup-uv@v5
4044
with:
4145
enable-cache: true
42-
python-version: "3.12"
4346
- name: Set up Rust
4447
uses: dtolnay/rust-toolchain@stable
48+
- name: Run sccache-cache
49+
uses: mozilla-actions/[email protected]
4550
- name: Install dependencies
4651
run: make install
4752
- name: Lint
@@ -68,6 +73,8 @@ jobs:
6873
python-version: ${{ matrix.python-version }}
6974
- name: Set up Rust
7075
uses: dtolnay/rust-toolchain@stable
76+
- name: Run sccache-cache
77+
uses: mozilla-actions/[email protected]
7178
- name: Install components
7279
run: make install
7380
- name: Test unit

.github/workflows/nightly.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ concurrency:
2929
group: ${{ github.ref }}-${{ github.workflow }}
3030
cancel-in-progress: true
3131

32+
env:
33+
SCCACHE_GHA_ENABLED: "true"
34+
RUSTC_WRAPPER: "sccache"
35+
3236
jobs:
3337
test:
3438
name: "stressful bad requests test"
@@ -44,9 +48,10 @@ jobs:
4448
uses: astral-sh/setup-uv@v5
4549
with:
4650
enable-cache: true
47-
python-version: "3.12"
4851
- name: Set up Rust
4952
uses: dtolnay/rust-toolchain@stable
53+
- name: Run sccache-cache
54+
uses: mozilla-actions/[email protected]
5055
- name: Install dependencies
5156
run: make install_py
5257
- name: Test

.github/workflows/page.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ concurrency:
2323
group: ${{ github.ref }}-${{ github.workflow }}
2424
cancel-in-progress: true
2525

26+
env:
27+
SCCACHE_GHA_ENABLED: "true"
28+
RUSTC_WRAPPER: "sccache"
29+
2630
jobs:
2731
build:
2832
runs-on: ubuntu-latest
@@ -34,9 +38,10 @@ jobs:
3438
uses: astral-sh/setup-uv@v5
3539
with:
3640
enable-cache: true
37-
python-version: "3.12"
3841
- name: Set up Rust
3942
uses: dtolnay/rust-toolchain@stable
43+
- name: Run sccache-cache
44+
uses: mozilla-actions/[email protected]
4045
- name: Install dependencies
4146
run: |
4247
make install_py

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Before contributing to this repository, please first discuss the change you wish
44

55
## Pull Request Process
66

7-
1. After you have forked this repository, you could use `make install` for *the first time* to install the local development dependencies; afterward, you may use `make dev` to build the library when you have made any code changes.
7+
1. After you have forked this repository, you could use `make install` for *the first time* to install the local development dependencies.
88
2. Before committing your changes, you can use `make format && make lint` to ensure the codes follow our style standards.
99
3. Please add corresponding tests to your change if that's related to new feature or API, and ensure `make test` can pass.
1010
4. Submit your pull request.

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ RUST_BACKTRACE=1
55
install_py:
66
uv venv
77
uv sync --all-groups --all-extras
8-
pre-commit install
98

109
install_rs:
1110
rustup toolchain install nightly --no-self-update

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ Mosec requires Python 3.7 or above. Install the latest [PyPI package](https://py
4747
pip install -U mosec
4848
# or install with conda
4949
conda install conda-forge::mosec
50+
# or install with pixi
51+
pixi add mosec
5052
```
5153

5254
To build from the source code, install [Rust](https://www.rust-lang.org/) and run the following command:

0 commit comments

Comments
 (0)