zls/.github/workflows/main.yml

36 lines
829 B
YAML
Raw Normal View History

2020-05-14 14:49:05 +01:00
name: CI
2020-05-14 15:09:50 +01:00
on:
push:
paths:
- '**.zig'
pull_request:
paths:
- '**.zig'
2020-05-14 14:49:05 +01:00
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)
2020-05-19 20:39:55 +01:00
git submodule update --init --recursive
2020-05-14 14:49:05 +01:00
- name: build
run: |
export PATH=./zig:$PATH
2020-05-14 14:57:19 +01:00
zig build
FILE=zig-cache/bin/zls
if test -f "$FILE"; then
exit 0
else
exit 1
fi
2020-05-14 14:49:05 +01:00