Compare commits

...

4 Commits

Author SHA1 Message Date
link2xt
dcb39b5525 remove shared-key 2026-05-04 05:15:39 +02:00
link2xt
1abdd85422 add-rust-environment-hash-key: false 2026-05-04 04:56:08 +02:00
link2xt
02dc992a7b save cache from this PR 2026-05-04 04:21:49 +02:00
link2xt
81e9e65af3 ci: make Rust cache more useful
Separate the cache for different Rust versions
and only write to the cache from the main branch.
2026-05-03 22:13:05 +02:00

View File

@@ -41,6 +41,9 @@ jobs:
shell: bash
- name: Cache rust cargo artifacts
uses: swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
with:
save-if: false
add-rust-environment-hash-key: false
- name: Run rustfmt
run: cargo fmt --all -- --check
- name: Run clippy
@@ -90,8 +93,15 @@ jobs:
with:
show-progress: false
persist-credentials: false
- run: rustup override set $RUST_VERSION
shell: bash
- name: Cache rust cargo artifacts
uses: swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
with:
save-if: false
add-rust-environment-hash-key: false
- name: Rustdoc
run: cargo doc --document-private-items --no-deps
@@ -135,6 +145,15 @@ jobs:
- name: Cache rust cargo artifacts
uses: swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
with:
# Only save the cache from the main branch runs.
# No need for PRs to write to the cache.
##save-if: ${{ github.ref == 'refs/heads/main' }}
# Do not hash Cargo.lock.
# We want the cache to be used later in PRs
# even if it updates some dependency.
add-rust-environment-hash-key: false
- name: Install nextest
uses: taiki-e/install-action@5f57d6cb7cd20b14a8a27f522884c4bc8a187458
@@ -167,8 +186,14 @@ jobs:
show-progress: false
persist-credentials: false
- run: rustup override set $RUST_VERSION
shell: bash
- name: Cache rust cargo artifacts
uses: swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
with:
save-if: false
add-rust-environment-hash-key: false
- name: Build C library
run: cargo build -p deltachat_ffi
@@ -193,8 +218,14 @@ jobs:
show-progress: false
persist-credentials: false
- run: rustup override set $RUST_VERSION
shell: bash
- name: Cache rust cargo artifacts
uses: swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
with:
save-if: false
add-rust-environment-hash-key: false
- name: Build deltachat-rpc-server
run: cargo build -p deltachat-rpc-server