From 7b37da667a4bf9250178f7e4e30f74fd3004f3fa Mon Sep 17 00:00:00 2001 From: Torkel Rogstad Date: Fri, 4 Oct 2024 13:44:42 +0200 Subject: [PATCH] fixup! ci: unify into single job --- .../workflows/check_lint_build_release.yaml | 50 ++++++++++++------- 1 file changed, 31 insertions(+), 19 deletions(-) diff --git a/.github/workflows/check_lint_build_release.yaml b/.github/workflows/check_lint_build_release.yaml index ebccce1..3b577e5 100644 --- a/.github/workflows/check_lint_build_release.yaml +++ b/.github/workflows/check_lint_build_release.yaml @@ -6,7 +6,37 @@ env: CARGO_TERM_COLOR: always jobs: - check-lint-build-release: + check-lint: + name: Check, Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-rust@v4 + + - name: Install buf + uses: bufbuild/buf-action@v1 + with: + setup_only: true + + - name: run protolint + uses: plexsystems/protolint-action@v0.7.0 + with: + configDirectory: . + srcDirectory: proto + + - name: Install buf + uses: bufbuild/buf-action@v1 + with: + setup_only: true + + # Disabled, since buf format is not configurable + #- name: Buf format + # run: buf format -d --exit-code + + - name: Buf lint + run: buf lint --error-format github-actions + + build-release: strategy: fail-fast: false matrix: @@ -34,24 +64,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: run protolint - uses: plexsystems/protolint-action@v0.7.0 - with: - configDirectory: . - srcDirectory: proto - - - name: Install buf - uses: bufbuild/buf-action@v1 - with: - setup_only: true - - # Disabled, since buf format is not configurable - #- name: Buf format - # run: buf format -d --exit-code - - - name: Buf lint - run: buf lint --error-format github-actions - - name: Install latest stable toolchain uses: dtolnay/rust-toolchain@master with: