-
Notifications
You must be signed in to change notification settings - Fork 54
46 lines (43 loc) · 1.23 KB
/
candid.yaml
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
on:
pull_request:
merge_group:
branches:
- master
name: Validate candid files
jobs:
candid_syntax:
name: validate candid syntax
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install didc 0.3.2
uses: supplypike/setup-bin@v1
with:
uri: https://github.com/dfinity/candid/releases/download/2023-07-11/didc-linux64
name: didc
version: 0.3.2
- name: run validate-candid-syntax.sh
run: ./scripts/validate-candid-syntax.sh
shell: bash
candid_matches_rust:
name: validate candid matches rust
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.82.0
override: true
- uses: Swatinem/rust-cache@v2
with:
shared-key: "build-debug"
- name: install didc 0.3.2
uses: supplypike/setup-bin@v1
with:
uri: https://github.com/dfinity/candid/releases/download/2023-07-11/didc-linux64
name: didc
version: 0.3.2
- name: run validate-candid-matches-rust.sh
run: ./scripts/validate-candid-matches-rust.sh
shell: bash