Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

env:
# One exact version for every job. With a range ("^2"), `cargo install` keeps
# whatever older 2.x rust-cache restored into ~/.cargo/bin, and the update
# signing needs a CLI that puts the version into the signature (--app-version,
# 2.12.3 is the one tested). Raise it here, and in README.md, on purpose.
TAURI_CLI_VERSION: "2.12.3"

jobs:
test:
name: Tests
Expand Down Expand Up @@ -130,7 +137,7 @@ jobs:
workspaces: src-tauri

- name: Install Tauri CLI
run: cargo install tauri-cli --version "^2" --locked
run: cargo install tauri-cli --version "${{ env.TAURI_CLI_VERSION }}" --locked

# A release's version is its tag's (v0.2.0 → 0.2.0), written into
# tauri.conf.json, Cargo.toml and Cargo.lock before building: nothing to
Expand Down Expand Up @@ -195,7 +202,7 @@ jobs:
workspaces: src-tauri

- name: Install Tauri CLI
run: cargo install tauri-cli --version "^2" --locked
run: cargo install tauri-cli --version "${{ env.TAURI_CLI_VERSION }}" --locked

- name: Set the version from the tag
if: startsWith(github.ref, 'refs/tags/v')
Expand Down Expand Up @@ -270,7 +277,7 @@ jobs:
workspaces: src-tauri

- name: Install Tauri CLI
run: cargo install tauri-cli --version "^2" --locked
run: cargo install tauri-cli --version "${{ env.TAURI_CLI_VERSION }}" --locked

- name: Set the version from the tag
if: startsWith(github.ref, 'refs/tags/v')
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ The [user guide](docs/README.md) covers every feature in detail:
# once: system libraries and Rust (Linux)
sudo apt install libwebkit2gtk-4.1-dev libxdo-dev libayatana-appindicator3-dev librsvg2-dev build-essential
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install tauri-cli --version "^2" --locked
cargo install tauri-cli --version 2.12.3 --locked # the version CI uses

cargo tauri dev # run from source
cargo tauri build # release binary + AppImage in src-tauri/target/release/bundle/appimage/
Expand Down
Loading