26 lines
539 B
YAML
26 lines
539 B
YAML
on:
|
|
push:
|
|
branches: [main]
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- id: checkout
|
|
name: checkout
|
|
uses: actions/checkout@v4
|
|
- id: setup-rust
|
|
name: setup rust
|
|
uses: https://github.com/ningenMe/setup-rustup@v1.1.0
|
|
with:
|
|
rust-version: nightly
|
|
- id: cargo-build
|
|
name: cargo build
|
|
run: |
|
|
cargo build
|
|
shell: bash
|
|
- id: cargo-test
|
|
name: cargo build
|
|
run: |
|
|
cargo test --lib
|
|
shell: bash
|