From c04f2097c0947de77e5e134c4ed563097d093689 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 24 Jun 2023 16:17:28 -0700 Subject: [PATCH] CI: add build testing Signed-off-by: Stephen Gutekanst --- .github/pull_request_template.md | 3 +++ .github/workflows/ci.yml | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .github/pull_request_template.md create mode 100644 .github/workflows/ci.yml diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..91b1ef3 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,3 @@ + + +- [ ] By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right. \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a47ab4a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +name: CI +on: + - push + - pull_request +jobs: + x86_64-linux: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: 'true' + - name: Setup Zig + run: | + sudo apt install xz-utils + sudo sh -c 'wget -c https://ziglang.org/builds/zig-linux-x86_64-0.11.0-dev.3380+7e0a02ee2.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin' + - name: build + run: zig build