From 5b42e0ed38d30600495b39fa3e8265c0e3c2540e Mon Sep 17 00:00:00 2001 From: Macpie Date: Fri, 17 May 2024 12:41:46 -0700 Subject: [PATCH] Use protoc action --- .github/workflows/CI.yml | 22 +++++++++++----------- README.md | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c6258f443..f7bab3b85 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -2,7 +2,7 @@ name: CI on: pull_request: - branches: [main] + branches: ["main"] push: branches: ["main"] tags: ["*"] @@ -28,8 +28,8 @@ jobs: - name: Rust install uses: dtolnay/rust-toolchain@stable - - name: Install protoc - run: sudo apt-get install -y protobuf-compiler + - name: Install Protoc + uses: arduino/setup-protoc@v3 - name: Cache uses: actions/cache@v4 @@ -76,8 +76,8 @@ jobs: with: components: clippy - - name: Install protoc - run: sudo apt-get install -y protobuf-compiler + - name: Install Protoc + uses: arduino/setup-protoc@v3 - name: Clippy run: cargo clippy --all-targets -- -Dclippy::all -D warnings @@ -111,8 +111,8 @@ jobs: - name: Rust install uses: dtolnay/rust-toolchain@stable - - name: Install protoc - run: sudo apt-get install -y protobuf-compiler + - name: Install Protoc + uses: arduino/setup-protoc@v3 - name: Cache uses: actions/cache@v4 @@ -147,8 +147,8 @@ jobs: - name: Rust install uses: dtolnay/rust-toolchain@stable - - name: Install protoc - run: sudo apt-get install -y protobuf-compiler + - name: Install Protoc + uses: arduino/setup-protoc@v3 - name: Cache uses: actions/cache@v4 @@ -176,8 +176,8 @@ jobs: - uses: dtolnay/rust-toolchain@stable - - name: Install protoc - run: sudo apt-get install -y protobuf-compiler + - name: Install Protoc + uses: arduino/setup-protoc@v3 - name: Cache uses: actions/cache@v4 diff --git a/README.md b/README.md index eae2d542e..628369b99 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Oracles +# Oracles [![CI](https://github.com/helium/oracles/actions/workflows/CI.yml/badge.svg)](https://github.com/helium/oracles/actions/workflows/CI.yml) ## Mobile