Skip to content

Commit 617e294

Browse files
committed
Fix: Gh actions permissions problem
1 parent 3a6cd9d commit 617e294

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

.github/workflows/check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
override: true
1717
components: rustfmt
1818
- name: Install Protoc
19-
uses: arduino/setup-protoc@v3
19+
run: sudo apt-get install -y protobuf-compiler
2020
- name: Cargo Check
2121
run: cargo check

.github/workflows/clippy.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@ jobs:
1616
components: clippy, rustfmt
1717
override: true
1818
- name: Install protoc
19-
run: |
20-
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
21-
curl -LO $PB_REL/download/v25.1/protoc-25.1-linux-x86_64.zip
22-
apt install -y unzip
23-
unzip protoc-25.1-linux-x86_64.zip -d $HOME/.local
24-
export PATH="$PATH:$HOME/.local/bin"
19+
run: sudo apt-get install -y protobuf-compiler
2520
- name: Clippy Lint
2621
run: |
2722
cargo clippy -- -D warnings

.github/workflows/fmt.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@ jobs:
1616
components: rustfmt
1717
override: true
1818
- name: Install protoc
19-
run: |
20-
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
21-
curl -LO $PB_REL/download/v25.1/protoc-25.1-linux-x86_64.zip
22-
apt install -y unzip
23-
unzip protoc-25.1-linux-x86_64.zip -d $HOME/.local
24-
export PATH="$PATH:$HOME/.local/bin"
19+
run: sudo apt-get install -y protobuf-compiler
2520
- name: Check Formatting
2621
run: |
2722
cargo fmt -- --check

0 commit comments

Comments
 (0)