Publish workflow (#15)

* Publish workflow
This commit is contained in:
obabec 2022-04-28 14:11:40 +02:00 committed by GitHub
parent 2693c01e9c
commit d4f5e05ba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

28
.github/workflows/release.yaml vendored Normal file
View File

@ -0,0 +1,28 @@
on:
release:
types:
- created
name: Release
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run Unit tests
run: RUST_LOG=trace cargo test unit
- name: Build embedded
run: cargo build --target thumbv7em-none-eabihf --features "no_std" --no-default-features
- uses: katyo/publish-crates@v1
with:
registry-token: ${{ secrets.CARGO_PUBLISH }}

View File

@ -27,6 +27,7 @@ Integration tests are written using tokio network tcp stack and can be find unde
```
cargo test unit
cargo test integration
cargo test load
```
## Acknowledgment