Add new workflow ci

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-09 01:53:10 +10:00
parent 43d5a6bdb1
commit c9bd741c9b
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

31
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,31 @@
name: Rust
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configure toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Configure caching
uses: actions/cache@v2
with:
key: ${{ matrix.os }}-${{ matrix.target }}-testing
path: |
${{ env.HOME }}/.cargo
target
- name: test
uses: actions-rs/cargo@v1
with:
command: test