Skip to content

Commit 79cbe5b

Browse files
committed
Upgrade dependencies and bundle protoc.exe
1 parent 62cb253 commit 79cbe5b

File tree

9 files changed

+407
-365
lines changed

9 files changed

+407
-365
lines changed

.cargo/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
LUA_LIB_NAME = "lua"
33
LUA_LIB = { value = "src/lua5.1/", relative = true }
44
LUA_INC = { value = "src/lua5.1/include", relative = true }
5+
PROTOC = { value = "bin/protoc-3.20.1.exe", relative = true }

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,25 @@ on:
66
pull_request:
77
branches: [main]
88

9-
env:
10-
CARGO_TERM_COLOR: always
11-
129
jobs:
1310

1411
rust:
1512
name: Rust
1613
runs-on: ubuntu-latest
1714

15+
env:
16+
CARGO_TERM_COLOR: always
17+
PROTOC: /home/runner/.local/bin/protoc
18+
1819
steps:
20+
- name: Install protoc
21+
run: |
22+
mkdir -p "$HOME/.local/bin"
23+
echo "$HOME/.local/bin" >> $GITHUB_PATH
24+
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.20.1/protoc-3.20.1-linux-x86_64.zip
25+
unzip -j protoc-3.20.1-linux-x86_64.zip bin/protoc -d $HOME/.local/bin
26+
rm protoc-3.20.1-linux-x86_64.zip
27+
1928
- name: Checkout code
2029
uses: actions/checkout@v2
2130

0 commit comments

Comments
 (0)