-
-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: remove actions/rustup in favor of Boshen/rustup (#3429)
- Loading branch information
Showing
8 changed files
with
37 additions
and
180 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,16 +64,11 @@ jobs: | |
- name: Checkout Branch | ||
uses: taiki-e/checkout-action@v1 | ||
|
||
- name: Install Rust Toolchain | ||
uses: ./.github/actions/rustup | ||
- uses: Boshen/setup-rust@main | ||
with: | ||
shared-key: benchmark-${{ matrix.component }} | ||
cache-key: benchmark-${{ matrix.component }} | ||
save-cache: ${{ github.ref_name == 'main' }} | ||
|
||
- name: Install codspeed | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-codspeed | ||
tools: cargo-codspeed | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
|
@@ -137,10 +132,9 @@ jobs: | |
- name: Checkout Branch | ||
uses: taiki-e/checkout-action@v1 | ||
|
||
- name: Install Rust Toolchain | ||
uses: ./.github/actions/rustup | ||
- uses: Boshen/setup-rust@main | ||
with: | ||
shared-key: benchmark-linter | ||
cache-key: benchmark-linter | ||
save-cache: ${{ github.ref_name == 'main' }} | ||
|
||
- uses: mozilla-actions/[email protected] | ||
|
@@ -239,10 +233,9 @@ jobs: | |
# - name: Checkout Branch | ||
# uses: taiki-e/checkout-action@v1 | ||
|
||
# - name: Install Rust Toolchain | ||
# uses: ./.github/actions/rustup | ||
# - uses: Boshen/setup-rust@main | ||
# with: | ||
# shared-key: 'benchmark_napi' | ||
# shared-key: benchmark_napi | ||
# save-cache: ${{ github.ref_name == 'main' }} | ||
|
||
# - name: Install codspeed | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,11 +54,12 @@ jobs: | |
SCCACHE_LOCAL_RW_MODE: | ||
steps: | ||
- uses: taiki-e/checkout-action@v1 | ||
- uses: ./.github/actions/rustup | ||
- uses: Boshen/setup-rust@main | ||
with: | ||
# warm cache factory for all other CI jobs | ||
# cache `target` directory to avoid download crates | ||
save-cache: ${{ github.ref_name == 'main' }} | ||
cache-key: warm | ||
# cache build outputs to speed up compilation | ||
- uses: mozilla-actions/[email protected] | ||
if: ${{ vars.USE_SCCACHE == 'true' }} | ||
|
@@ -71,38 +72,30 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiki-e/checkout-action@v1 | ||
|
||
- name: Install Rust Toolchain | ||
uses: ./.github/actions/rustup | ||
- uses: Boshen/setup-rust@main | ||
with: | ||
shared-key: 'wasm' | ||
cache-key: wasm | ||
save-cache: ${{ github.ref_name == 'main' }} | ||
|
||
- name: Check | ||
run: | | ||
rustup target add wasm32-unknown-unknown | ||
cargo check -p oxc_wasm --target wasm32-unknown-unknown | ||
- name: Build | ||
run: | | ||
npx -y wasm-pack build --target web --dev ./crates/oxc_wasm | ||
npx -y wasm-pack build --target web --dev ./wasm/parser | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Check output types | ||
run: | | ||
npx -y -p typescript tsc --lib es2020,dom crates/oxc_wasm/pkg/oxc_wasm.d.ts | ||
run: npx -y -p typescript tsc --lib es2020,dom crates/oxc_wasm/pkg/oxc_wasm.d.ts | ||
|
||
typos: | ||
name: Spell Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiki-e/checkout-action@v1 | ||
|
||
- uses: crate-ci/typos@master | ||
with: | ||
files: . | ||
|
@@ -120,14 +113,11 @@ jobs: | |
src: | ||
- 'Cargo.lock' | ||
- name: Install cargo-deny | ||
if: steps.filter.outputs.src == 'true' | ||
uses: taiki-e/install-action@cargo-deny | ||
|
||
- uses: ./.github/actions/rustup | ||
- uses: Boshen/setup-rust@main | ||
if: steps.filter.outputs.src == 'true' | ||
with: | ||
restore-cache: false | ||
tools: cargo-deny | ||
|
||
- if: steps.filter.outputs.src == 'true' | ||
run: cargo deny check | ||
|
@@ -145,7 +135,7 @@ jobs: | |
- '**/*.rs' | ||
- '**/Cargo.toml' | ||
- 'Cargo.lock' | ||
- uses: ./.github/actions/rustup | ||
- uses: Boshen/setup-rust@main | ||
with: | ||
restore-cache: false | ||
if: steps.filter.outputs.src == 'true' | ||
|
@@ -161,42 +151,31 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiki-e/checkout-action@v1 | ||
|
||
- name: Install Rust | ||
uses: ./.github/actions/rustup | ||
- uses: Boshen/setup-rust@main | ||
with: | ||
fmt: true | ||
components: rustfmt | ||
restore-cache: false | ||
|
||
- run: cargo fmt --all -- --check | ||
|
||
lint: | ||
name: Clippy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiki-e/checkout-action@v1 | ||
|
||
- name: Install Rust | ||
uses: ./.github/actions/rustup | ||
- uses: Boshen/setup-rust@main | ||
with: | ||
clippy: true | ||
|
||
- name: Run Clippy | ||
run: cargo lint -- -D warnings | ||
components: clippy | ||
- run: cargo lint -- -D warnings | ||
|
||
doc: | ||
name: Doc | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiki-e/checkout-action@v1 | ||
|
||
- name: Install Rust | ||
uses: ./.github/actions/rustup | ||
- uses: Boshen/setup-rust@main | ||
with: | ||
docs: true | ||
|
||
- name: Run doc | ||
run: RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --document-private-items | ||
components: rust-docs | ||
- run: RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --document-private-items | ||
|
||
conformance: | ||
name: Conformance | ||
|
@@ -220,12 +199,12 @@ jobs: | |
src: | ||
- '!crates/oxc_linter/**' | ||
- name: Install Rust Toolchain | ||
- uses: Boshen/setup-rust@main | ||
if: steps.filter.outputs.src == 'true' | ||
uses: ./.github/actions/rustup | ||
with: | ||
shared-key: 'conformance' | ||
cache-key: conformance | ||
save-cache: ${{ github.ref_name == 'main' }} | ||
tools: just | ||
|
||
- uses: mozilla-actions/[email protected] | ||
|
||
|
@@ -244,12 +223,6 @@ jobs: | |
node-version: 20 | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Install just | ||
if: steps.filter.outputs.src == 'true' | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: just | ||
|
||
- name: Check Conformance | ||
if: steps.filter.outputs.src == 'true' | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters