Browse Source

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

pull/3846/head
raskad 8 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
with:
fetch-depth: 0
- uses: actions-rs/toolchain@v1.0.7
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
profile: minimal
- name: Cache cargo
uses: actions/cache@v4
with:

14
.github/workflows/release.yml

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

32
.github/workflows/rust.yml

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

4
.github/workflows/test262.yml

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

4
.github/workflows/webassembly.yml

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

Loading…
Cancel
Save