Compute@Edge -> Fastly Compute #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |