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
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
* text=auto
*.rv text eol=lf
*.rv text eol=lf linguist-language=Rust
*.c text eol=lf
*.h text eol=lf
*.md text eol=lf
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,32 @@ name: CI
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- name: Install Raven
uses: martian56/setup-raven@v1
with:
raven-version: "2.26.1"

- name: Build
run: rvpm build
Expand All @@ -27,3 +38,6 @@ jobs:

- name: Format check
run: rvpm fmt --check

- name: Documentation
run: rvpm doc
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# perch

[![CI](https://github.com/martian56/perch/actions/workflows/ci.yml/badge.svg)](https://github.com/martian56/perch/actions/workflows/ci.yml)

Raw terminal control for Raven. Keypresses as they happen, mouse reports,
terminal size, and unbuffered writes, on Linux, macOS, and Windows.

Expand All @@ -23,7 +25,7 @@ the same one Raven already needs for linking.

## Usage

```raven
```rust
import "github.com/martian56/perch" { Terminal }
import "github.com/martian56/perch/keys" { InputEvent, Key }

Expand Down
Loading