-
-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace archived github actions from actions-rs (#3848)
* Replace archived github actions from actions-rs * fix syntax error
- Loading branch information
Showing
6 changed files
with
84 additions
and
42 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -20,9 +20,7 @@ jobs: | |
toolchain: stable | ||
|
||
- name: Install cargo-workspaces | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-workspaces | ||
run: cargo install cargo-workspaces | ||
|
||
- name: Release | ||
env: | ||
|
@@ -99,11 +97,14 @@ jobs: | |
binary_name: boa.exe | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
|
||
- name: Build | ||
run: cargo build --target ${{ matrix.target }} --verbose --release --locked --bin boa | ||
- name: Upload binaries to release | ||
|
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 |
---|---|---|
|
@@ -19,22 +19,25 @@ jobs: | |
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: tarpaulin | ||
- name: Install cargo-tarpaulin | ||
uses: baptiste0928/[email protected] | ||
with: | ||
crate: cargo-tarpaulin | ||
|
||
- name: Run tarpaulin | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: tarpaulin | ||
args: --workspace --features annex-b,intl_bundled,experimental --ignore-tests --engine llvm --out xml | ||
run: cargo tarpaulin --workspace --features annex-b,intl_bundled,experimental --ignore-tests --engine llvm --out xml | ||
|
||
- name: Upload to codecov.io | ||
uses: codecov/codecov-action@v4 | ||
|
||
|
@@ -48,10 +51,14 @@ jobs: | |
- macos-latest | ||
- windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
- name: Build tests | ||
run: cargo test --no-run --profile ci | ||
|
@@ -70,14 +77,19 @@ jobs: | |
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Get the rust_version from the Cargo.toml | ||
- name: Get rust_version | ||
id: rust_version | ||
run: echo "rust_version=$(grep '^rust-version' Cargo.toml | cut -d' ' -f3 | tr -d '"')" >> $GITHUB_OUTPUT | ||
- uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: ${{ steps.rust_version.outputs.rust_version }} | ||
|
||
- name: Check compilation | ||
run: cargo check --all-features --all-targets | ||
|
||
|
@@ -86,11 +98,15 @@ jobs: | |
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
components: rustfmt | ||
|
||
- name: Format (rustfmt) | ||
run: cargo fmt --all --check | ||
|
||
|
@@ -99,18 +115,22 @@ jobs: | |
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
components: clippy | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: clippy | ||
|
||
- name: Install cargo-workspaces | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-workspaces | ||
run: cargo install cargo-workspaces | ||
|
||
- name: Clippy (All features) | ||
run: cargo workspaces exec cargo clippy --all-features --all-targets | ||
- name: Clippy (No features) | ||
|
@@ -129,10 +149,14 @@ jobs: | |
env: | ||
RUSTDOCFLAGS: -D warnings | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: docs | ||
|
@@ -144,18 +168,21 @@ jobs: | |
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: build-fuzz | ||
|
||
- name: Install cargo-fuzz | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-fuzz | ||
version: latest | ||
run: cargo install cargo-fuzz | ||
|
||
- name: Build fuzz | ||
run: cd tests/fuzz && cargo fuzz build -s none --dev | ||
|
||
|
@@ -164,17 +191,20 @@ jobs: | |
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: build-run-examples | ||
|
||
- name: Install cargo-workspaces | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-workspaces | ||
run: cargo install cargo-workspaces | ||
|
||
- name: Build (All features) | ||
run: cargo workspaces exec cargo build --all-features --all-targets --profile ci | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rs/[email protected] | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- uses: rustsec/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -29,10 +29,14 @@ jobs: | |
WASM_PACK_PATH: ~/.cargo/bin/wasm-pack | ||
RUSTFLAGS: -D warnings | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
- name: Install wasm-pack | ||
uses: baptiste0928/[email protected] | ||
|