From 8345b94cd6c83b40877b1ad60b4e4fb6125de79b Mon Sep 17 00:00:00 2001 From: SuperAuguste Date: Thu, 14 May 2020 09:49:05 -0400 Subject: [PATCH] ci test --- .github/workflows/main.yml | 19 +++++++++++++++++++ ci/linux.sh | 8 ++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/main.yml create mode 100644 ci/linux.sh diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..95ba0cb --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,19 @@ +name: CI +on: [push, pull_request] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: install software + run: | + ZIG=$(wget --quiet --output-document=- https://ziglang.org/download/index.json | jq --raw-output '.master."x86_64-linux".tarball') + echo installing $ZIG into ./zig/ + wget --quiet --output-document=- $ZIG | tar Jx + mv zig-linux-x86_64-* zig + echo zig version $(./zig/zig version) + - name: build + run: | + export PATH=./zig:$PATH + ./ci/linux.sh + diff --git a/ci/linux.sh b/ci/linux.sh new file mode 100644 index 0000000..e2d6f29 --- /dev/null +++ b/ci/linux.sh @@ -0,0 +1,8 @@ +zig build + +FILE=/zig-cache/bin/zls + +if test -f "$FILE"; then + exit 0 +fi +exit 1