diff options
-rw-r--r-- | .github/workflows/ci.yml | 24 | ||||
-rw-r--r-- | interchange/DeviceResources.capnp | 1 |
2 files changed, 25 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 diff --git a/interchange/DeviceResources.capnp b/interchange/DeviceResources.capnp index 4954698..17cc3f1 100644 --- a/interchange/DeviceResources.capnp +++ b/interchange/DeviceResources.capnp @@ -552,6 +552,7 @@ struct Device { # INIT[2] is output when second pin is 1 and all other pins are 0. # INIT[3] is output when both pins are 1. initParam @2 : Text; + invalid @3 : Void; } } |