From 1e06f0401e554a623cdefdd91ac5685177070533 Mon Sep 17 00:00:00 2001 From: Sergei Shulepov Date: Sun, 10 Mar 2024 13:40:40 +0700 Subject: [PATCH] add publish check job --- .github/workflows/ci.yml | 2 +- .github/workflows/publish.yml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c3caf3..ef32f7b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: - uses: actions-rs/cargo@v1 with: command: check - + test: runs-on: ${{ matrix.os }} strategy: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..16d3812 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,20 @@ +on: + push: + branches: + - publish-* + +jobs: + publish_check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: 'recursive' + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - uses: actions-rs/cargo@v1 + with: + command: package