diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 19ce8b6bd9..1f7b720445 100644 --- a/.github/workflows/pull_request.yml +++ b/.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: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 425e7d32b6..3385334e06 100644 --- a/.github/workflows/release.yml +++ b/.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 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b0faffcde8..9526392b25 100644 --- a/.github/workflows/rust.yml +++ b/.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 diff --git a/.github/workflows/test262.yml b/.github/workflows/test262.yml index d51beb91e0..be17998cc1 100644 --- a/.github/workflows/test262.yml +++ b/.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: diff --git a/.github/workflows/webassembly.yml b/.github/workflows/webassembly.yml index 08b5df72b4..cb41ab05b0 100644 --- a/.github/workflows/webassembly.yml +++ b/.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