Browse Source

Switch from actions-rs/toolchain to dtolnay/rust-toolchain (#3845)

pull/3846/head
raskad 6 months ago committed by GitHub
parent
commit
09c08c5435
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      .github/workflows/pull_request.yml
  2. 14
      .github/workflows/release.yml
  3. 32
      .github/workflows/rust.yml
  4. 4
      .github/workflows/test262.yml
  5. 4
      .github/workflows/webassembly.yml

4
.github/workflows/pull_request.yml

@ -15,11 +15,9 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: actions-rs/toolchain@v1.0.7 - uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: stable toolchain: stable
override: true
profile: minimal
- name: Cache cargo - name: Cache cargo
uses: actions/cache@v4 uses: actions/cache@v4
with: with:

14
.github/workflows/release.yml

@ -15,11 +15,9 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Rust toolchain - name: Install Rust toolchain
uses: actions-rs/toolchain@v1 uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: stable toolchain: stable
profile: minimal
override: true
- name: Install cargo-workspaces - name: Install cargo-workspaces
uses: actions-rs/install@v0.1 uses: actions-rs/install@v0.1
@ -49,12 +47,10 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Rust toolchain - name: Install Rust toolchain
uses: actions-rs/toolchain@v1 uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: stable toolchain: stable
target: wasm32-unknown-unknown targets: wasm32-unknown-unknown
profile: minimal
override: true
- name: Install wasm-pack - name: Install wasm-pack
uses: jetli/wasm-pack-action@v0.4.0 uses: jetli/wasm-pack-action@v0.4.0
@ -105,11 +101,9 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install Rust toolchain - name: Install Rust toolchain
uses: actions-rs/toolchain@v1 uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: stable toolchain: stable
profile: minimal
override: true
- name: Build - name: Build
run: cargo build --target ${{ matrix.target }} --verbose --release --locked --bin boa run: cargo build --target ${{ matrix.target }} --verbose --release --locked --bin boa
- name: Upload binaries to release - name: Upload binaries to release

32
.github/workflows/rust.yml

@ -20,11 +20,9 @@ jobs:
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1.0.7 - uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: stable toolchain: stable
override: true
profile: minimal
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with: with:
key: tarpaulin key: tarpaulin
@ -51,11 +49,9 @@ jobs:
- windows-latest - windows-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1.0.7 - uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: stable toolchain: stable
override: true
profile: minimal
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
- name: Build tests - name: Build tests
run: cargo test --no-run --profile ci run: cargo test --no-run --profile ci
@ -79,11 +75,9 @@ jobs:
- name: Get rust_version - name: Get rust_version
id: rust_version id: rust_version
run: echo "rust_version=$(grep '^rust-version' Cargo.toml | cut -d' ' -f3 | tr -d '"')" >> $GITHUB_OUTPUT run: echo "rust_version=$(grep '^rust-version' Cargo.toml | cut -d' ' -f3 | tr -d '"')" >> $GITHUB_OUTPUT
- uses: actions-rs/toolchain@v1.0.7 - uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: ${{ steps.rust_version.outputs.rust_version }} toolchain: ${{ steps.rust_version.outputs.rust_version }}
override: true
profile: minimal
- name: Check compilation - name: Check compilation
run: cargo check --all-features --all-targets run: cargo check --all-features --all-targets
@ -93,11 +87,9 @@ jobs:
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1.0.7 - uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: stable toolchain: stable
override: true
profile: minimal
components: rustfmt components: rustfmt
- name: Format (rustfmt) - name: Format (rustfmt)
run: cargo fmt --all --check run: cargo fmt --all --check
@ -108,11 +100,9 @@ jobs:
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1.0.7 - uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: stable toolchain: stable
override: true
profile: minimal
components: clippy components: clippy
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with: with:
@ -140,11 +130,9 @@ jobs:
RUSTDOCFLAGS: -D warnings RUSTDOCFLAGS: -D warnings
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1.0.7 - uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: stable toolchain: stable
override: true
profile: minimal
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with: with:
key: docs key: docs
@ -157,11 +145,9 @@ jobs:
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1.0.7 - uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: stable toolchain: stable
override: true
profile: minimal
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with: with:
key: build-fuzz key: build-fuzz
@ -179,11 +165,9 @@ jobs:
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1.0.7 - uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: stable toolchain: stable
override: true
profile: minimal
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with: with:
key: build-run-examples key: build-run-examples

4
.github/workflows/test262.yml

@ -18,11 +18,9 @@ jobs:
submodules: true submodules: true
path: boa path: boa
- name: Install the Rust toolchain - name: Install the Rust toolchain
uses: actions-rs/toolchain@v1.0.7 uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: stable toolchain: stable
override: true
profile: minimal
- name: Cache cargo - name: Cache cargo
uses: actions/cache@v4 uses: actions/cache@v4
with: with:

4
.github/workflows/webassembly.yml

@ -30,11 +30,9 @@ jobs:
RUSTFLAGS: -D warnings RUSTFLAGS: -D warnings
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1.0.7 - uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: stable toolchain: stable
override: true
profile: minimal
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
- name: Install wasm-pack - name: Install wasm-pack
uses: baptiste0928/cargo-install@v3.1.0 uses: baptiste0928/cargo-install@v3.1.0

Loading…
Cancel
Save