Migrate the CI from travis-ci to Github Actions

Because travis-ci.org will be shutting down.

Signed-off-by: Tim Zhang <tim@hyper.sh>
This commit is contained in:
Tim Zhang
2021-01-25 16:17:03 +08:00
parent 0c58b5dd84
commit 88a45d4922
2 changed files with 26 additions and 31 deletions

26
.github/workflows/bvt.yaml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: BVT
on: [pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: make debug
fmt:
name: Format Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup component add rustfmt
- run: make fmt
test:
name: Run Unit Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: make test