Skip to content

Commit

Permalink
ci: Remove rust-cache action. (#790)
Browse files Browse the repository at this point in the history
* Remove rust-cache.

* Bump CI.

* Bump CI.

* Bump CI.
  • Loading branch information
milesj authored Apr 18, 2023
1 parent 6a81a98 commit 5e861ab
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 29 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ jobs:
ref: ${{ steps.sha.outputs.result }}
# ref: ${{ github.event.pull_request.head.sha }}
- uses: moonrepo/setup-rust@v0
- uses: Swatinem/rust-cache@v2
with:
shared-key: benchmark
- name: Run benchmarks
# args: --workspace --bench ${{ matrix.bench }} -- --save-baseline base-sha
run:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ jobs:
with:
cache: yarn
- uses: moonrepo/setup-rust@v0
- uses: Swatinem/rust-cache@v2
with:
shared-key: moon
- uses: moonrepo/tool-version-action@v1
with:
node: ${{ matrix.node-version }}
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,13 @@ jobs:
- uses: moonrepo/setup-rust@v0
if: ${{ !matrix.docker-target }}
with:
target: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
with:
shared-key: moon
targets: ${{ matrix.target }}
- name: Generate lockfile
if: ${{ !matrix.docker-target }}
run: cargo generate-lockfile
- name: Setup toolchain
if: ${{ matrix.setup }}
run: ${{ matrix.setup }}
- name: Add target
if: ${{ !matrix.docker-target }}
run: rustup target add ${{ matrix.target }}
- name: Build binary
if: ${{ !matrix.docker-target }}
run: bash ./scripts/release/buildBinary.sh
Expand Down Expand Up @@ -155,9 +149,6 @@ jobs:
cache: yarn
check-latest: true
node-version: 16
- uses: Swatinem/rust-cache@v2
with:
shared-key: moon
- name: Setup toolchain
if: ${{ matrix.setup }}
run: ${{ matrix.setup }}
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ jobs:
- uses: moonrepo/setup-rust@v0
with:
components: rustfmt
- uses: Swatinem/rust-cache@v2
with:
shared-key: format
- name: Check formatting
run: cargo fmt --all --check
lint:
Expand All @@ -43,9 +40,6 @@ jobs:
with:
bins: make
components: clippy
- uses: Swatinem/rust-cache@v2
with:
shared-key: lint
- name: Run linter
run: cargo make lint
test:
Expand All @@ -61,12 +55,6 @@ jobs:
with:
bins: make, nextest, llvm-cov
components: llvm-tools-preview
- name: Cache cargo
uses: Swatinem/rust-cache@v2
# https://github.com/Swatinem/rust-cache#known-issues
if: ${{ runner.os != 'Windows' }}
with:
shared-key: test
- name: Run tests with coverage
if: ${{ env.WITH_COVERAGE == 'true' }}
run: cargo make test-coverage
Expand Down
2 changes: 1 addition & 1 deletion .moon/workspace.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Trigger CI: 13
# Trigger CI: 17

$schema: '../website/static/schemas/workspace.json'

Expand Down

0 comments on commit 5e861ab

Please sign in to comment.