forked from fastly/compute-at-edge-abi
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (34 loc) · 1007 Bytes
/
test.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
name: CI
on:
- pull_request
- push
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install stable Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
override: true
- name: Validate witx
run: |
cargo install witx-codegen
for i in rust assemblyscript zig markdown overview; do
witx-codegen -t "$i" witx-next/*.witx > /dev/null || exit 1
done
- name: Check indentation
run: |
cargo install witx-indent
find . -name '*.witx' | while read -r f; do
witx-indent "$f" >"${f}.indented"
if ! cmp "$f" "${f}.indented"; then
echo "* [${f}] is not properly indented:" >&2
diff -u "$f" "${f}.indented" >&2
exit 1
fi
rm -f "${f}.indented"
done