diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 2257c6ed..c7b7d624 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -10,7 +10,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: toolchain: stable @@ -20,10 +20,9 @@ jobs: sudo apt-get install -y libssl-dev pkg-config protobuf-compiler - name: Check code formating - uses: actions-rs/cargo@v1 + uses: mbrobbel/rustfmt-check@master with: - command: fmt - args: --check + token: ${{ secrets.GITHUB_TOKEN }} - name: Clippy linting uses: giraffate/clippy-action@v1 diff --git a/.github/workflows/check-build-publish.yaml b/.github/workflows/check-build-publish.yaml index 95d3dcc7..6ab1d575 100644 --- a/.github/workflows/check-build-publish.yaml +++ b/.github/workflows/check-build-publish.yaml @@ -43,15 +43,13 @@ jobs: sudo apt-get install -y libssl-dev pkg-config protobuf-compiler - name: Setup rust toolchain - uses: actions-rs/toolchain@v1 - with: # seems to ignore rust-toolchain but it should be supported + uses: dtolnay/rust-toolchain@stable + with: toolchain: stable + # No replacement for actions-rs/rust-cargo - name: Build release binary - uses: actions-rs/cargo@v1 - with: - command: build - args: --release + run: cargo build --release - name: Log in to gchr.io uses: docker/login-action@v3