Skip to content

Commit ec350d1

Browse files
authored
[rust] Rust tests without arduino (#1783)
The arduino actions seems to have an API limit, which breaks the builds rather often. This removes that dependency. - Removes the arduino actions - installs rustup using the install script from https://sh.rustup.rs - Installs protobuf-compiler from apt
1 parent 32ed928 commit ec350d1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/rust.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ env:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-22.04
1515

1616
steps:
1717
- uses: actions/checkout@v4
1818
- name: Install X11 dev libs
1919
run: |
20-
sudo apt-get update && sudo apt-get install -y libx11-dev
21-
- name: Install Protoc
22-
uses: arduino/setup-protoc@v3
20+
sudo apt-get update && sudo apt-get install -y libx11-dev protobuf-compiler
21+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rust-install.sh
22+
bash ./rust-install.sh -y
2323
- name: Build
2424
run: |
2525
cd rust
@@ -30,15 +30,15 @@ jobs:
3030
cargo test --verbose
3131
3232
clippy:
33-
runs-on: ubuntu-latest
33+
runs-on: ubuntu-22.04
3434

3535
steps:
3636
- uses: actions/checkout@v4
3737
- name: Install X11 dev libs
3838
run: |
39-
sudo apt-get update && sudo apt-get install -y libx11-dev
40-
- name: Install Protoc
41-
uses: arduino/setup-protoc@v3
39+
sudo apt-get update && sudo apt-get install -y libx11-dev protobuf-compiler
40+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rust-install.sh
41+
bash ./rust-install.sh -y
4242
- name: Run Clippy
4343
run: |
4444
cd rust

0 commit comments

Comments
 (0)