Skip to content

Commit 4226097

Browse files
authored
ci: fixed Rust cache for 'cargo install' in publish.yml (anomalyco#13907)
1 parent e35a413 commit 4226097

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,22 @@ jobs:
171171
GH_TOKEN: ${{ github.token }}
172172
GITHUB_RUN_ID: ${{ github.run_id }}
173173

174+
- name: Resolve tauri portable SHA
175+
if: contains(matrix.settings.host, 'ubuntu')
176+
run: echo "TAURI_PORTABLE_SHA=$(git ls-remote https://github.com/tauri-apps/tauri.git refs/heads/feat/truly-portable-appimage | cut -f1)" >> "$GITHUB_ENV"
177+
174178
# Fixes AppImage build issues, can be removed when https://github.com/tauri-apps/tauri/pull/12491 is released
175179
- name: Install tauri-cli from portable appimage branch
180+
uses: taiki-e/cache-cargo-install-action@v3
176181
if: contains(matrix.settings.host, 'ubuntu')
177-
run: |
178-
cargo install tauri-cli --git https://github.com/tauri-apps/tauri --branch feat/truly-portable-appimage --force
179-
echo "Installed tauri-cli version:"
180-
cargo tauri --version
182+
with:
183+
tool: tauri-cli
184+
git: https://github.com/tauri-apps/tauri
185+
# branch: feat/truly-portable-appimage
186+
rev: ${{ env.TAURI_PORTABLE_SHA }}
187+
188+
- name: Show tauri-cli version
189+
run: cargo tauri --version
181190

182191
- name: Build and upload artifacts
183192
uses: tauri-apps/tauri-action@390cbe447412ced1303d35abe75287949e43437a

0 commit comments

Comments
 (0)