zls/.github/workflows/main.yml
Nameless 4f633c45dc
Remove -Dallocation_info from CI build
With the removal of the debug allocator, this was also removed from the build.zig, and causes the CI to fail.
2020-10-18 21:11:45 -05:00

32 lines
792 B
YAML

name: CI
on:
push:
paths:
- '**.zig'
pull_request:
paths:
- '**.zig'
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)
git submodule update --init --recursive
- name: build
run: |
export PATH=./zig:$PATH
zig build
FILE=zig-cache/bin/zls
test -f "$FILE" || exit 1
zig build test || exit 1