Skip to content

Commit a0cfeda

Browse files
committed
py(ci): Add protoc installation task
1 parent ee9d53e commit a0cfeda

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

.github/workflows/check-self.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,24 @@ jobs:
1818
fail-fast: false
1919
steps:
2020
- uses: actions/checkout@v3
21-
21+
2222
- name: Install Task
2323
uses: arduino/setup-task@v2
24+
2425
- name: Install the latest version of uv
2526
uses: astral-sh/setup-uv@v5
26-
27+
28+
- name: Install Protoc
29+
uses: arduino/setup-protoc@v3
30+
2731
- name: Rust Cache
2832
uses: actions/cache@v2
2933
with:
3034
path: |
3135
/tmp/gltesting/cargo
3236
/tmp/gltesting/target
3337
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
34-
38+
3539
- name: Check Self
3640
run : |
3741
PYTEST_OPTS='-n 8' task clientpy:check

Taskfile.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ includes:
99
taskfile: "libs/gl-client-py/Taskfile.yml"
1010
dir: "libs/gl-client-py/"
1111

12+
docker:
13+
taskfile: "docker/Taskfile.yml"
14+
dir: "."
15+
1216
tasks:
1317
check-py:
1418
dir: "libs/gl-client-py"

docker/Taskfile.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: "3"
2+
3+
tasks:
4+
install-protoc:
5+
dir: '/tmp'
6+
env:
7+
PROTOC_VERSION: 3.19.3
8+
cmds:
9+
- wget https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip --quiet -O protoc.zip
10+
- unzip protoc.zip
11+
- mkdir -p {{ .HOME }}/bin/
12+
- mv bin/protoc {{ .HOME }}/bin/
13+
- rm protoc.zip

0 commit comments

Comments
 (0)