mirror of
https://github.com/vercel/turborepo.git
synced 2025-12-23 09:19:46 +00:00
### Description Dogfood the new `$TURBO_ROOT$` feature as there were a few places we were depending on `../` ### Testing Instructions CI
48 lines
1.1 KiB
JSON
48 lines
1.1 KiB
JSON
{
|
|
"$schema": "../docs/public/schema.json",
|
|
"extends": [
|
|
"//"
|
|
],
|
|
"tasks": {
|
|
// A task that is used for detecting if any turborepo Rust sources change
|
|
"rust-src": {
|
|
"env": [
|
|
"RUNNER_OS"
|
|
],
|
|
"inputs": [
|
|
"$TURBO_ROOT$/version.txt",
|
|
"$TURBO_ROOT$/crates/**/*.rs",
|
|
// Rust crates
|
|
"$TURBO_ROOT$/crates/*/Cargo.toml",
|
|
"$TURBO_ROOT$/Cargo.toml",
|
|
"$TURBO_ROOT$/Cargo.lock",
|
|
"!$TURBO_ROOT$/crates/**/target"
|
|
]
|
|
},
|
|
"build": {
|
|
"outputs": [
|
|
"$TURBO_ROOT$/target/debug/turbo",
|
|
"$TURBO_ROOT$/target/debug/turbo.exe",
|
|
"$TURBO_ROOT$/target/release/turbo",
|
|
"$TURBO_ROOT$/target/release/turbo.exe"
|
|
],
|
|
"dependsOn": [
|
|
"rust-src"
|
|
],
|
|
"passThroughEnv": [
|
|
"ProgramData",
|
|
// sccache related flags
|
|
"SCCACHE_BUCKET",
|
|
"SCCACHE_REGION",
|
|
"RUSTC_WRAPPER",
|
|
"CARGO_INCREMENTAL",
|
|
"AWS_ACCESS_KEY_ID",
|
|
"AWS_SECRET_ACCESS_KEY"
|
|
]
|
|
},
|
|
"release-native": {
|
|
"dependsOn": ["@turbo/releaser#build"],
|
|
"cache": false
|
|
}
|
|
}
|
|
}
|