Skip to content

Commit fd2c832

Browse files
committed
Use depot cargo caching
1 parent 760da64 commit fd2c832

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.github/workflows/push.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ jobs:
107107
with:
108108
shared-key: rust-lint
109109
save-if: ${{ github.ref == 'refs/heads/master' }}
110-
- run: cargo fmt --check --all
111-
- run: cargo check --workspace --all-targets
110+
- run: depot cargo fmt --check --all
111+
- run: depot cargo check --workspace --all-targets
112112
- name: cargo clippy
113113
run: |
114114
rustup component add clippy
115-
cargo clippy --workspace --all-targets -- -D warnings
115+
depot cargo clippy --workspace --all-targets -- -D warnings
116116
117117
rust-but-binary-no-tauri:
118118
needs: changes
@@ -132,7 +132,7 @@ jobs:
132132
- run: |
133133
sudo apt update
134134
sudo apt install -y libdbus-1-dev pkg-config
135-
- run: cargo build -p but
135+
- run: depot cargo build -p but
136136

137137
rust-docs:
138138
needs: changes
@@ -151,7 +151,7 @@ jobs:
151151
with:
152152
shared-key: rust-docs
153153
save-if: ${{ github.ref == 'refs/heads/master' }}
154-
- run: cargo doc --no-deps --all-features --document-private-items -p gitbutler-git
154+
- run: depot cargo doc --no-deps --all-features --document-private-items -p gitbutler-git
155155
env:
156156
RUSTDOCFLAGS: -Dwarnings
157157

@@ -188,15 +188,15 @@ jobs:
188188
shared-key: rust-testing
189189
save-if: ${{ github.ref == 'refs/heads/master' }}
190190
- run: |
191-
cargo test --workspace
191+
depot cargo test --workspace
192192
env:
193193
GITBUTLER_TESTS_NO_CLEANUP: '1'
194194
name: cargo test
195195
- run: |
196196
set -e
197-
cargo check -p gitbutler-tauri --no-default-features
197+
depot cargo check -p gitbutler-tauri --no-default-features
198198
for feature in devtools custom-protocol error-context; do
199-
cargo check -p gitbutler-tauri --no-default-features --features "$feature"
199+
depot cargo check -p gitbutler-tauri --no-default-features --features "$feature"
200200
done
201201
name: Check Tauri App
202202
@@ -216,7 +216,7 @@ jobs:
216216
shared-key: rust-testing
217217
save-if: ${{ github.ref == 'refs/heads/master' }}
218218
- name: 'cargo check'
219-
run: cargo check --workspace --all-targets --features windows
219+
run: depot cargo check --workspace --all-targets --features windows
220220

221221
check-rust:
222222
if: always()

.github/workflows/test-e2e-blackbox.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Setup node environment
4949
uses: ./.github/actions/init-env-node
5050
- name: Build CLI
51-
run: cargo build -p gitbutler-cli
51+
run: depot cargo build -p gitbutler-cli
5252
- name: Build SvelteKit
5353
run: pnpm build:desktop -- --mode development
5454
- name: Build Tauri

.github/workflows/test-e2e-playwright.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ jobs:
6565
if: ${{ steps.playwright-cache.outputs.cache-hit == 'true' && github.ref != 'refs/heads/master' }}
6666
name: Install missing deps after cache hit
6767
- name: Build gitbutler-git
68-
run: cargo build -p gitbutler-git
68+
run: depot cargo build -p gitbutler-git
6969
- name: Build but-server
70-
run: cargo build -p but-server
70+
run: depot cargo build -p but-server
7171
- name: Build but-testing
72-
run: cargo build -p but-testing
72+
run: depot cargo build -p but-testing
7373
- name: Build SvelteKit
7474
run: pnpm build:desktop
7575
if: ${{ github.ref != 'refs/heads/master' }}

0 commit comments

Comments
 (0)