feat(ci): readd build action
This commit is contained in:
parent
4f71e34592
commit
7e65691129
1 changed files with 30 additions and 0 deletions
30
.github/workflows/build.yml
vendored
Normal file
30
.github/workflows/build.yml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Checkout Repository And Submodules
|
||||
uses: actions/checkout@v1
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Setup Rust
|
||||
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -q -y
|
||||
|
||||
- name: Build
|
||||
run: . "$HOME/.cargo/env" && cargo build --verbose
|
||||
|
||||
- name: Run tests
|
||||
run: . "$HOME/.cargo/env" && cargo test --verbose
|
||||
Loading…
Add table
Add a link
Reference in a new issue