diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..937ee41 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,15 @@ +on: + release: + types: [created] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Compile and release + uses: rust-build/rust-build.action@v1.4.3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + EXTRA_FILES: "README.md LICENSE" diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 31000a2..f69e0b0 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,6 +16,23 @@ jobs: steps: - uses: actions/checkout@v3 + - name: nightly-rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + components: rustfmt, clippy + - name: run code coverage + uses: actions-rs/tarpaulin@v0.1 + with: + version: '0.15.0' + args: '-- --engine llvm --test-threads 1' + - name: upload code coverage + uses: actions/upload-artifact@v1 + with: + name: code-coverage-report + path: code-coverage-report.xml + - name: Build run: cargo build --verbose - name: Run tests