Skip to content

Commit 3a3a2a0

Browse files
authored
Merge pull request #268 from dwall-rs/main
0.1.16
2 parents b1497d9 + e42c364 commit 3a3a2a0

25 files changed

+1142
-459
lines changed

.github/workflows/nightly.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,19 +118,26 @@ jobs:
118118
- name: install frontend dependencies
119119
run: bun i
120120

121-
- name: Cache Rust cache and target directory
121+
- name: Cache Rust cache
122122
uses: actions/cache@v4
123123
with:
124124
path: |
125125
~/.cargo/bin/
126126
~/.cargo/registry/index/
127127
~/.cargo/registry/cache/
128128
~/.cargo/git/db/
129-
target/
130129
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
131130
restore-keys: |
132131
${{ runner.os }}-cargo-
133132
133+
- name: Restore cached target
134+
id: cache-target-restore
135+
uses: actions/cache/restore@v4
136+
with:
137+
path: |
138+
target/
139+
key: ${{ runner.os }}-target-${{ hashFiles('**/Cargo.lock') }}
140+
134141
- uses: tauri-apps/tauri-action@v0
135142
env:
136143
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
@@ -140,6 +147,14 @@ jobs:
140147
releaseId: ${{ needs.create-release.outputs.release_id }}
141148
args: ${{ matrix.args }}
142149

150+
- name: Save target
151+
id: cache-target-save
152+
uses: actions/cache/save@v4
153+
with:
154+
path: |
155+
target/
156+
key: ${{ steps.cache-target-restore.outputs.cache-primary-key }}
157+
143158
publish-release:
144159
permissions:
145160
contents: write

.github/workflows/publish.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,26 @@ jobs:
113113
- name: install frontend dependencies
114114
run: bun i
115115

116-
- name: Cache Rust cache and target directory
116+
- name: Cache Rust cache
117117
uses: actions/cache@v4
118118
with:
119119
path: |
120120
~/.cargo/bin/
121121
~/.cargo/registry/index/
122122
~/.cargo/registry/cache/
123123
~/.cargo/git/db/
124-
target/
125124
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
126125
restore-keys: |
127126
${{ runner.os }}-cargo-
128127
128+
- name: Restore cached target
129+
id: cache-target-restore
130+
uses: actions/cache/restore@v4
131+
with:
132+
path: |
133+
target/
134+
key: ${{ runner.os }}-target-${{ hashFiles('**/Cargo.lock') }}
135+
129136
- uses: tauri-apps/tauri-action@v0.5.16
130137
env:
131138
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
@@ -137,6 +144,14 @@ jobs:
137144
updaterJsonPreferNsis: true
138145
args: ${{ matrix.args }}
139146

147+
- name: Save target
148+
id: cache-target-save
149+
uses: actions/cache/save@v4
150+
with:
151+
path: |
152+
target/
153+
key: ${{ steps.cache-target-restore.outputs.cache-primary-key }}
154+
140155
publish-release:
141156
permissions:
142157
contents: write

0 commit comments

Comments
 (0)