summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..c4b6b7d
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,24 @@
+name: CI tests
+on: [push, pull_request]
+jobs:
+ Check-schema:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ with:
+ submodules: recursive
+
+ - name: Install
+ run: |
+ sudo apt-get install capnproto libcapnp-dev
+ git clone https://github.com/capnproto/capnproto-java.git $GITHUB_WORKSPACE/env/capnproto-java
+ cd $GITHUB_WORKSPACE/env/capnproto-java
+ make
+ sudo make install
+ - name: Build schemas
+ run: |
+ mkdir build
+ capnp compile -Iinterchange -oc++:build interchange/References.capnp
+ capnp compile -Iinterchange -oc++:build interchange/LogicalNetlist.capnp
+ capnp compile -Iinterchange -oc++:build interchange/PhysicalNetlist.capnp
+ capnp compile -Iinterchange -oc++:build interchange/DeviceResources.capnp