Adding GitHub Actions for building/testing and deploying cargo docs to GitHub Pages.
This commit is contained in:
26
.github/workflows/rust-build-test.yaml
vendored
Normal file
26
.github/workflows/rust-build-test.yaml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Rust
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Build
|
||||
run: cargo build --release --verbose
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
|
||||
- name: Linting
|
||||
run: make lint
|
||||
Reference in New Issue
Block a user