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
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
pull_request:
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive

- name: Install protobuf
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy

- name: Rust cache
uses: Swatinem/rust-cache@v2

- name: Cargo fmt
run: cargo fmt --all -- --check

- name: Cargo clippy
run: cargo clippy --all-targets --all-features -- -D warnings

- name: Cargo test
run: cargo test --all

- name: Cargo build
run: cargo build --release
55 changes: 55 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Release

on:
release:
types: [published]

permissions:
contents: write

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
- os: macos-latest
target: aarch64-apple-darwin
- os: windows-latest
target: x86_64-pc-windows-msvc

steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive

- name: Install protobuf (Linux)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler

- name: Install protobuf (macOS)
if: runner.os == 'macOS'
run: brew install protobuf

- name: Install protobuf (Windows)
if: runner.os == 'Windows'
run: choco install protoc --no-progress

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable

- name: Rust cache
uses: Swatinem/rust-cache@v2

- name: Upload release binaries
uses: taiki-e/upload-rust-binary@v1
with:
bin: t9s
target: ${{ matrix.target }}
archive: $bin-$tag-$target
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ impl App {
"open" | "goto" => {
if let Some(uri) = args {
match parse_deep_link(uri) {
Ok(location) => return self.apply_location(location),
Ok(location) => self.apply_location(location),
Err(err) => {
self.last_error = Some((
format!("invalid uri: {}", format_uri_error(err)),
Expand Down
Loading