🤖 Make Github Actions work (#1)

This commit is contained in:
2023-04-07 10:37:43 -07:00
parent b2f6b12ced
commit 99fb12910f
2 changed files with 34 additions and 0 deletions

33
.github/workflows/rust.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: Rust
on:
push:
branches: [ "develop", "ci" ]
pull_request:
branches: [ "develop" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: [stable]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
default: true
override: true
- name: Build
run: cargo build
- name: Format Check
run: cargo fmt --check
- name: Run tests
run: cargo test

View File

@@ -141,6 +141,7 @@ fn main() -> Result<(), BackendError> {
}
Err(ReadlineError::Eof) => break,
Err(ReadlineError::Interrupted) => break,
#[cfg(not(windows))]
Err(ReadlineError::Errno(e)) => {
eprintln!("Unknown syscall error: {}", e);
break;