mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-11-22 13:29:19 +08:00
fix(ci): use available Rust toolchain and native Twoslash options
This commit is contained in:
@@ -137,7 +137,9 @@ jobs:
|
||||
- uses: actions/setup-python@v7
|
||||
with:
|
||||
python-version: ${{ env.PY_VERSION }}
|
||||
- uses: dtolnay/rust-toolchain@1.100.0
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: 1.95.0 # Keep in sync with rust-toolchain.toml.
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: ". -> target"
|
||||
@@ -454,7 +456,9 @@ jobs:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-build-${{ hashFiles('pyproject.toml') }}
|
||||
restore-keys: ${{ runner.os }}-pip-build-
|
||||
- uses: dtolnay/rust-toolchain@1.100.0
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: 1.95.0 # Keep in sync with rust-toolchain.toml.
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: ". -> target"
|
||||
|
||||
@@ -32,7 +32,9 @@ jobs:
|
||||
# `pip install -e .` invokes maturin (declared in pyproject.toml's
|
||||
# build-system) which calls cargo to compile the Rust extension.
|
||||
- name: Install Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@1.100.0
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: 1.95.0 # Keep in sync with rust-toolchain.toml.
|
||||
|
||||
- name: Cache cargo registry + build
|
||||
uses: Swatinem/rust-cache@v2
|
||||
@@ -100,7 +102,9 @@ jobs:
|
||||
restore-keys: ${{ runner.os }}-pip-eval-
|
||||
|
||||
- name: Install Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@1.100.0
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: 1.95.0 # Keep in sync with rust-toolchain.toml.
|
||||
|
||||
- name: Cache cargo registry + build
|
||||
uses: Swatinem/rust-cache@v2
|
||||
|
||||
@@ -25,7 +25,9 @@ jobs:
|
||||
python-version: "3.11"
|
||||
|
||||
- name: Install Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@1.100.0
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: 1.95.0 # Keep in sync with rust-toolchain.toml.
|
||||
|
||||
- name: Cache cargo registry + build
|
||||
uses: Swatinem/rust-cache@v2
|
||||
|
||||
@@ -28,8 +28,8 @@ export default defineConfig({
|
||||
transformerTwoslash({
|
||||
twoslashOptions: {
|
||||
compilerOptions: {
|
||||
target: 9, // ES2022
|
||||
lib: ['lib.es2022.d.ts', 'lib.dom.d.ts', 'lib.dom.iterable.d.ts'],
|
||||
target: 'es2022',
|
||||
lib: ['es2022', 'dom', 'dom.iterable'],
|
||||
},
|
||||
// Documentation code snippets are illustrative — don't require full type validity
|
||||
handbookOptions: {
|
||||
|
||||
Reference in New Issue
Block a user