-
Notifications
You must be signed in to change notification settings - Fork 11
49 lines (39 loc) · 1.24 KB
/
protobuf-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: protobuf-check
on:
push:
pull_request:
schedule:
- cron: "0 * * * *"
jobs:
protobuf-check:
name: protobuf-check
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: checkout-ic
run: |
pushd ${{ runner.temp }}
curl -L https://github.com/dfinity/ic/archive/refs/heads/master.tar.gz | tar xz
mv ic-master ic
popd
- name: setup-protoc
run: |
mkdir ~/.local
pushd ${{ runner.temp }}
curl -L https://github.com/protocolbuffers/protobuf/releases/download/v3.18.1/protoc-3.18.1-linux-x86_64.zip -O
unzip protoc-3.18.1-linux-x86_64.zip -d ~/.local
popd
echo ~/.local/bin >> $GITHUB_PATH
- name: check
run: |
pushd ${{ runner.temp }}/ic/rs/rosetta-api/ledger_canister
protoc \
--js_out \
import_style=commonjs,binary:${{ github.workspace }}/autogen \
--proto_path proto \
--proto_path ../../types/base_types/proto \
proto/ic_ledger/pb/v1/types.proto \
../../types/base_types/proto/ic_base_types/pb/v1/types.proto
popd
git diff --exit-code