add github action support

This commit is contained in:
zhboner
2020-05-11 20:41:06 +08:00
parent c54377c113
commit fcbec7e7d2
+27
View File
@@ -0,0 +1,27 @@
on: [push]
name: build
jobs:
check:
name: Rust project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
- name: Run cargo build
uses: actions-rs/cargo@v1
with:
command: build --release