🤖 Make Github Actions work #1
33
.github/workflows/rust.yml
vendored
Normal file
33
.github/workflows/rust.yml
vendored
Normal 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
|
||||||
@@ -141,6 +141,7 @@ fn main() -> Result<(), BackendError> {
|
|||||||
}
|
}
|
||||||
Err(ReadlineError::Eof) => break,
|
Err(ReadlineError::Eof) => break,
|
||||||
Err(ReadlineError::Interrupted) => break,
|
Err(ReadlineError::Interrupted) => break,
|
||||||
|
#[cfg(not(windows))]
|
||||||
Err(ReadlineError::Errno(e)) => {
|
Err(ReadlineError::Errno(e)) => {
|
||||||
eprintln!("Unknown syscall error: {}", e);
|
eprintln!("Unknown syscall error: {}", e);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user