Skip to content

Commit 65b8278

Browse files
committed
fix: install protoc for ci
1 parent aaa4e61 commit 65b8278

File tree

2 files changed

+71
-1
lines changed

2 files changed

+71
-1
lines changed

.github/workflows/build.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ jobs:
3232
- name: Run sccache-cache
3333
uses: mozilla-actions/[email protected]
3434

35+
- uses: facebook/install-dotslash@1e4e7b3e07eaca387acb98f1d4720e0bee8dbb6a
36+
37+
- name: Install software with dotslash
38+
env:
39+
GH_TOKEN: ${{ secrets.APPBIOTIC_PACKAGES_RWD }}
40+
run: |
41+
dotslash -- fetch bin/protoc
42+
echo "$GITHUB_WORKSPACE/bin" >> "$GITHUB_PATH"
43+
3544
- name: Run cargo fmt
3645
run: cargo fmt --all -- --check
3746

@@ -45,4 +54,4 @@ jobs:
4554

4655
- name: Run cargo clippy
4756
run: |
48-
[[ ${{ matrix.rust-toolchain }} != 1.82.0 ]] || cargo clippy --all-targets --all -- --allow=unknown-lints --deny=warnings
57+
[[ ${{ matrix.rust-toolchain }} != 1.86.0 ]] || cargo clippy --all-targets --all -- --allow=unknown-lints --deny=warnings

bin/protoc

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
#!/usr/bin/env dotslash
2+
3+
{
4+
"name": "protoc",
5+
"platforms": {
6+
"macos-aarch64": {
7+
"size": 2290923,
8+
"hash": "blake3",
9+
"digest": "613a2fdd71feacff45a2fca2b1efe41886d2f4cc5cb9fc67be1f6107d52b5343",
10+
"format": "zip",
11+
"path": "bin/protoc",
12+
"providers": [
13+
{
14+
"type": "github-release",
15+
"repo": "https://github.com/protocolbuffers/protobuf",
16+
"tag": "v29.4",
17+
"name": "protoc-29.4-osx-aarch_64.zip"
18+
},
19+
{
20+
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v29.4/protoc-29.4-osx-aarch_64.zip"
21+
}
22+
]
23+
},
24+
"linux-x86_64": {
25+
"size": 3288836,
26+
"hash": "blake3",
27+
"digest": "4bab93186900937222ce3ea7a3fd785babf288307f537081de1a73d8e1ca4d80",
28+
"format": "zip",
29+
"path": "bin/protoc",
30+
"providers": [
31+
{
32+
"type": "github-release",
33+
"repo": "https://github.com/protocolbuffers/protobuf",
34+
"tag": "v29.4",
35+
"name": "protoc-29.4-linux-x86_64.zip"
36+
},
37+
{
38+
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v29.4/protoc-29.4-linux-x86_64.zip"
39+
}
40+
]
41+
},
42+
"linux-aarch64": {
43+
"size": 3256817,
44+
"hash": "blake3",
45+
"digest": "ddc4d932261df276567a8bb43d78609a1e6c53fb34881a7bc1f72a01bc8c2572",
46+
"format": "zip",
47+
"path": "bin/protoc",
48+
"providers": [
49+
{
50+
"type": "github-release",
51+
"repo": "https://github.com/protocolbuffers/protobuf",
52+
"tag": "v29.4",
53+
"name": "protoc-29.4-linux-aarch_64.zip"
54+
},
55+
{
56+
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v29.4/protoc-29.4-linux-aarch_64.zip"
57+
}
58+
]
59+
}
60+
}
61+
}

0 commit comments

Comments
 (0)