From b1539b33313bdaa93b798bcda521596f762da447 Mon Sep 17 00:00:00 2001 From: Cijo Thomas Date: Tue, 25 Feb 2025 23:17:56 -0800 Subject: [PATCH 1/3] Try to build examples in CI --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b28499bbe..d478fca69e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -155,3 +155,18 @@ jobs: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: fail_ci_if_error: true + build-examples: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + - name: Build examples + run: | + for example in examples/*; do + if [ -d "$example" ]; then + echo "Building $example" + cargo build --example $(basename $example) + fi + done \ No newline at end of file From 03cfbb0c1268ee4c55c691860f02e4c9ebda0102 Mon Sep 17 00:00:00 2001 From: Cijo Thomas Date: Tue, 25 Feb 2025 23:19:59 -0800 Subject: [PATCH 2/3] simple build --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d478fca69e..e8e2994f87 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -167,6 +167,6 @@ jobs: for example in examples/*; do if [ -d "$example" ]; then echo "Building $example" - cargo build --example $(basename $example) + cargo build fi done \ No newline at end of file From bc0263df84408d25f482613f5c7be53b22a4e244 Mon Sep 17 00:00:00 2001 From: Cijo Thomas Date: Tue, 25 Feb 2025 23:34:20 -0800 Subject: [PATCH 3/3] protoc --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e8e2994f87..03e200f775 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -162,6 +162,9 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: components: rustfmt + - uses: arduino/setup-protoc@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Build examples run: | for example in examples/*; do