ci: setup protoc before building

also make sure we have latest stable with rustup
This commit is contained in:
əlemi 2024-09-09 17:17:13 +02:00
parent 8202c3f7d3
commit 68d57db212
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 16 additions and 1 deletions

View file

@ -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:

View file

@ -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