diff options
author | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-02-24 08:30:57 -0800 |
---|---|---|
committer | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-02-24 08:45:42 -0800 |
commit | f58d0599c5e0ad2bebfb6f12496bdc8e7fc0ae49 (patch) | |
tree | a64938266578143b46f4523a7f2833660f2e2f94 | |
parent | b96c249b38b71aabc1674e9a61751deb49352638 (diff) | |
download | fpga-interchange-schema-f58d0599c5e0ad2bebfb6f12496bdc8e7fc0ae49.tar.gz fpga-interchange-schema-f58d0599c5e0ad2bebfb6f12496bdc8e7fc0ae49.tar.bz2 fpga-interchange-schema-f58d0599c5e0ad2bebfb6f12496bdc8e7fc0ae49.zip |
Test schema on GH Actions.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
-rw-r--r-- | .github/workflows/ci.yml | 24 |
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 |