GeezerVison is showing github.com — ci: fixed Rust cache for 'cargo install' in publish.yml (#13907) · Krule/opencode@4226097
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/publish.yml +13-4Lines changed: 13 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -171,13 +171,22 @@ jobs: |
171 | 171 | GH_TOKEN: ${{ github.token }} |
172 | 172 | GITHUB_RUN_ID: ${{ github.run_id }} |
173 | 173 |
|
| 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 | + |
174 | 178 | # Fixes AppImage build issues, can be removed when https://github.com/tauri-apps/tauri/pull/12491 is released |
175 | 179 | - name: Install tauri-cli from portable appimage branch |
| 180 | + uses: taiki-e/cache-cargo-install-action@v3 |
176 | 181 | 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 |
181 | 190 |
|
182 | 191 | - name: Build and upload artifacts |
183 | 192 | uses: tauri-apps/tauri-action@390cbe447412ced1303d35abe75287949e43437a |
|