From d4f5e05ba68364e1dcffd4b421714274cee630ea Mon Sep 17 00:00:00 2001 From: obabec Date: Thu, 28 Apr 2022 14:11:40 +0200 Subject: [PATCH] Publish workflow (#15) * Publish workflow --- .github/workflows/release.yaml | 28 ++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..4dbb977 --- /dev/null +++ b/.github/workflows/release.yaml @@ -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 }} diff --git a/README.md b/README.md index e1d0c23..f6bd60e 100644 --- a/README.md +++ b/README.md @@ -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