diff --git a/scripts/ci.ps1 b/scripts/ci.ps1 index e013453b..6f26923c 100644 --- a/scripts/ci.ps1 +++ b/scripts/ci.ps1 @@ -56,19 +56,19 @@ $selene = $LASTEXITCODE Record-Result "Selene" $selene Write-Step 6 "Rust Linting (Clippy) - Auto-fix" -cargo clippy --fix --allow-dirty --allow-staged 2>&1 | Out-Null +cargo clippy -j 16 --fix --allow-dirty --allow-staged 2>&1 | Out-Null Write-Host "Verifying..." -ForegroundColor Yellow -cargo clippy --all-targets --all-features 2>&1 +cargo clippy -j 16 --all-targets --all-features 2>&1 $clippy = $LASTEXITCODE Record-Result "Clippy" $clippy Write-Step 7 "Build Everything" -cargo build --locked --all-targets --all-features +cargo build -j 16 --locked --all-targets --all-features $build = $LASTEXITCODE Record-Result "Build" $build Write-Step 8 "Run ALL Rust Tests" -$testOutput = cargo test --locked --all-targets --all-features -- --test-threads=16 2>&1 +$testOutput = cargo test -j 16 --locked --all-targets --all-features -- --test-threads=16 2>&1 $rustTests = $LASTEXITCODE $testOutput | Write-Host Record-Result "Rust Tests" $rustTests @@ -106,18 +106,18 @@ if ($RbxDom) { Write-Step 13 "Rust Linting (Clippy) for rbx-dom - Auto-fix" Push-Location rbx-dom - cargo clippy --fix --allow-dirty --allow-staged 2>&1 | Out-Null + cargo clippy -j 16 --fix --allow-dirty --allow-staged 2>&1 | Out-Null Write-Host "Verifying..." -ForegroundColor Yellow - cargo clippy --all-targets --all-features -- -D warnings 2>&1 + cargo clippy -j 16 --all-targets --all-features -- -D warnings 2>&1 $clippyRbxDom = $LASTEXITCODE Pop-Location Record-Result "Clippy (rbx-dom)" $clippyRbxDom Write-Step 14 "Build rbx-dom" Push-Location rbx-dom - cargo build --verbose + cargo build -j 16 --verbose $buildRbxDom = $LASTEXITCODE - cargo build --all-features --verbose + cargo build -j 16 --all-features --verbose $buildRbxDomAll = $LASTEXITCODE Pop-Location Record-Result "Build (rbx-dom)" $buildRbxDom @@ -125,9 +125,9 @@ if ($RbxDom) { Write-Step 15 "Run ALL rbx-dom Rust Tests" Push-Location rbx-dom - cargo test --verbose -- --test-threads=16 + cargo test -j 16 --verbose -- --test-threads=16 $testsRbxDom = $LASTEXITCODE - cargo test --all-features --verbose -- --test-threads=16 + cargo test -j 16 --all-features --verbose -- --test-threads=16 $testsRbxDomAll = $LASTEXITCODE Pop-Location Record-Result "Tests (rbx-dom)" $testsRbxDom diff --git a/scripts/ci.sh b/scripts/ci.sh index a7ba1ec3..183b5bc8 100644 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -55,19 +55,19 @@ selene_exit=$? record "Selene" $selene_exit step 6 "Rust Linting (Clippy) - Auto-fix" -cargo clippy --fix --allow-dirty --allow-staged >/dev/null 2>&1 +cargo clippy -j 16 --fix --allow-dirty --allow-staged >/dev/null 2>&1 echo "Verifying..." -cargo clippy --all-targets --all-features 2>&1 +cargo clippy -j 16 --all-targets --all-features 2>&1 clippy_exit=$? record "Clippy" $clippy_exit step 7 "Build Everything" -cargo build --locked --all-targets --all-features +cargo build -j 16 --locked --all-targets --all-features build_exit=$? record "Build" $build_exit step 8 "Run ALL Rust Tests" -cargo test --locked --all-targets --all-features -- --test-threads=16 2>&1 +cargo test -j 16 --locked --all-targets --all-features -- --test-threads=16 2>&1 rust_tests=$? record "Rust Tests" $rust_tests @@ -101,24 +101,24 @@ if [ "$RBX_DOM" = true ]; then record "Selene (rbx_dom_lua)" $selene_rbxdom step 13 "Rust Linting (Clippy) for rbx-dom - Auto-fix" - (cd rbx-dom && cargo clippy --fix --allow-dirty --allow-staged >/dev/null 2>&1) + (cd rbx-dom && cargo clippy -j 16 --fix --allow-dirty --allow-staged >/dev/null 2>&1) echo "Verifying..." - (cd rbx-dom && cargo clippy --all-targets --all-features -- -D warnings 2>&1) + (cd rbx-dom && cargo clippy -j 16 --all-targets --all-features -- -D warnings 2>&1) clippy_rbxdom=$? record "Clippy (rbx-dom)" $clippy_rbxdom step 14 "Build rbx-dom" - (cd rbx-dom && cargo build --verbose) + (cd rbx-dom && cargo build -j 16 --verbose) build_rbxdom=$? - (cd rbx-dom && cargo build --all-features --verbose) + (cd rbx-dom && cargo build -j 16 --all-features --verbose) build_rbxdom_all=$? record "Build (rbx-dom)" $build_rbxdom record "Build (rbx-dom all-features)" $build_rbxdom_all step 15 "Run ALL rbx-dom Rust Tests" - (cd rbx-dom && cargo test --verbose -- --test-threads=16) + (cd rbx-dom && cargo test -j 16 --verbose -- --test-threads=16) tests_rbxdom=$? - (cd rbx-dom && cargo test --all-features --verbose -- --test-threads=16) + (cd rbx-dom && cargo test -j 16 --all-features --verbose -- --test-threads=16) tests_rbxdom_all=$? record "Tests (rbx-dom)" $tests_rbxdom record "Tests (rbx-dom all-features)" $tests_rbxdom_all