Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
ci: use maintained action
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Apr 30, 2023
1 parent a4c4019 commit d0a2a34
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 43 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/bench_analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@ jobs:
ref: ${{ steps.sha.outputs.result }}

- name: Install toolchain
run: rustup show

- name: Cache
uses: Swatinem/rust-cache@v2
with:
shared-key: "xtask-release"
uses: moonrepo/setup-rust@v0

- name: Install critcmp
run: cargo install critcmp
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/bench_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@ jobs:
ref: ${{ steps.sha.outputs.result }}

- name: Install toolchain
run: rustup show

- name: Cache
uses: Swatinem/rust-cache@v2
with:
shared-key: "cli-release"
uses: moonrepo/setup-rust@v0

- name: Install hyperfine
run: cargo install hyperfine
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/bench_formatter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@ jobs:
ref: ${{ steps.sha.outputs.result }}

- name: Install toolchain
run: rustup show

- name: Cache
uses: Swatinem/rust-cache@v2
with:
shared-key: "xtask-release"
uses: moonrepo/setup-rust@v0

- name: Install critcmp
run: cargo install critcmp
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/bench_parser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@ jobs:
ref: ${{ steps.sha.outputs.result }}

- name: Install toolchain
run: rustup show

- name: Cache
uses: Swatinem/rust-cache@v2
with:
shared-key: "xtask-release"
uses: moonrepo/setup-rust@v0

- name: Install critcmp
run: cargo install critcmp
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/parser_conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,7 @@ jobs:
submodules: recursive

- name: Install toolchain
run: rustup show

- name: Cache
uses: Swatinem/rust-cache@v2
with:
shared-key: "xtask-release"
uses: moonrepo/setup-rust@v0

- name: Compile
run: cargo build --release --locked -p xtask_coverage
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
components: rustfmt
- name: Run rustfmt
run: cargo fmt --all --verbose -- --check
run: cargo fmt --all --check

lint:
name: Lint Rust Files
Expand Down Expand Up @@ -76,8 +76,8 @@ jobs:
uses: actions/checkout@v3
- name: Install toolchain
uses: moonrepo/setup-rust@v0
- name: Install latest nextest release
uses: taiki-e/install-action@nextest
with:
bins: nextest
- name: Compile for tests
run: cargo test --no-run --workspace --verbose
- name: Run tests
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/pull_request_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,8 @@ jobs:
- uses: pnpm/action-setup@v2.1.0
with:
version: 7
- name: Cache
uses: Swatinem/rust-cache@v2
with:
shared-key: "wasm"
- name: Install toolchain
uses: moonrepo/setup-rust@v0
- name: Build WASM module for the web
run: wasm-pack build --out-dir ../../npm/wasm-web --target web --scope rometools crates/rome_wasm
- name: Install libraries
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release_lsp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ jobs:
with:
fetch-depth: 1

- name: Install Rust toolchain
run: rustup target add ${{ matrix.target }}
- name: Install toolchain
uses: moonrepo/setup-rust@v0
with:
targets: ${{ matrix.target }}

- name: Install arm64 toolchain
if: matrix.code-target == 'linux-arm64'
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ jobs:
- uses: pnpm/action-setup@v2.1.0
with:
version: 7
- name: Cache
uses: Swatinem/rust-cache@v2
with:
shared-key: "wasm"
- name: Install toolchain
uses: moonrepo/setup-rust@v0
- name: Install libraries
working-directory: npm/js-api
run: pnpm i
Expand Down

0 comments on commit d0a2a34

Please sign in to comment.