summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlitghost <537074+litghost@users.noreply.github.com>2021-02-24 08:49:00 -0800
committerGitHub <noreply@github.com>2021-02-24 08:49:00 -0800
commitcb6d16847dfca7f104205c83bbdc056303ac82a0 (patch)
tree0fd7bffcaeacf38fe73f51b02d7e0940a91d9f93
parentb96c249b38b71aabc1674e9a61751deb49352638 (diff)
parent8c0080dfddc454148a8d0202e4704c48441b5977 (diff)
downloadfpga-interchange-schema-cb6d16847dfca7f104205c83bbdc056303ac82a0.tar.gz
fpga-interchange-schema-cb6d16847dfca7f104205c83bbdc056303ac82a0.tar.bz2
fpga-interchange-schema-cb6d16847dfca7f104205c83bbdc056303ac82a0.zip
Merge pull request #13 from litghost/test_schema
Test schema on GH Actions.
-rw-r--r--.github/workflows/ci.yml24
-rw-r--r--interchange/DeviceResources.capnp1
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;
}
}