From 580bbbe4ab82ef584c7fb228cfbd98fee42e04ef Mon Sep 17 00:00:00 2001 From: Anton Baliasnikov Date: Thu, 5 Dec 2024 15:40:00 +0000 Subject: [PATCH] ci: use custom rust toolchain in release process --- .github/workflows/release.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f38f09f..8a6ddfd 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,9 +7,24 @@ on: jobs: + rust-toolchain: + runs-on: ubuntu-latest + outputs: + version: ${{ steps.rust-toolchain.outputs.version }} + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Extract rust toolchain version + id: rust-toolchain + run: echo "version=$(cat rust-toolchain)" >> "${GITHUB_OUTPUT}" + release: + needs: rust-toolchain uses: matter-labs/zksync-ci-common/.github/workflows/release-plz.yaml@v1 secrets: gh_token: ${{ secrets.RELEASE_TOKEN }} cargo_registry_token: ${{ secrets.CRATES_IO_TOKEN }} slack_webhook: ${{ secrets.SLACK_WEBHOOK_RELEASES }} + with: + rust-toolchain: ${{ needs.rust-toolchain-version.outputs.version }}