From 68d57db2121cdc2320fa51e74858f87b68c36b0e Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 9 Sep 2024 17:17:13 +0200 Subject: [PATCH] ci: setup protoc before building also make sure we have latest stable with rustup --- .github/workflows/lua.yml | 9 ++++++++- .github/workflows/python.yml | 8 ++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lua.yml b/.github/workflows/lua.yml index fe49648..098c8a8 100644 --- a/.github/workflows/lua.yml +++ b/.github/workflows/lua.yml @@ -25,7 +25,8 @@ jobs: target: armv7 steps: - uses: actions/checkout@v4 - - run: rustup update + - run: rustup update stable && rustup default stable + - uses: arduino/setup-protoc@v2 - run: cargo build --release --features=lua - uses: actions/upload-artifact@v4 with: @@ -47,6 +48,8 @@ jobs: target: armv7 steps: - uses: actions/checkout@v4 + - run: rustup update stable && rustup default stable + - uses: arduino/setup-protoc@v2 - run: cargo build --release --features=lua - uses: actions/upload-artifact@v4 with: @@ -64,6 +67,8 @@ jobs: target: x86 steps: - uses: actions/checkout@v4 + - run: rustup update stable && rustup default stable + - uses: arduino/setup-protoc@v2 - run: cargo build --release --features=lua - uses: actions/upload-artifact@v4 with: @@ -81,6 +86,8 @@ jobs: target: aarch64 steps: - uses: actions/checkout@v4 + - run: rustup update stable && rustup default stable + - uses: arduino/setup-protoc@v2 - run: cargo build --release --features=lua - uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index d56e45c..379c009 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -34,6 +34,8 @@ jobs: target: ppc64le steps: - uses: actions/checkout@v4 + - run: rustup update stable && rustup default stable + - uses: arduino/setup-protoc@v2 - uses: actions/setup-python@v5 with: python-version: 3.x @@ -65,6 +67,8 @@ jobs: target: armv7 steps: - uses: actions/checkout@v4 + - run: rustup update stable && rustup default stable + - uses: arduino/setup-protoc@v2 - uses: actions/setup-python@v5 with: python-version: 3.x @@ -92,6 +96,8 @@ jobs: target: x86 steps: - uses: actions/checkout@v4 + - run: rustup update stable && rustup default stable + - uses: arduino/setup-protoc@v2 - uses: actions/setup-python@v5 with: python-version: 3.x @@ -119,6 +125,8 @@ jobs: target: aarch64 steps: - uses: actions/checkout@v4 + - run: rustup update stable && rustup default stable + - uses: arduino/setup-protoc@v2 - uses: actions/setup-python@v5 with: python-version: 3.x