Update Github Workflows

This commit is contained in:
Nameless 2020-11-04 16:50:29 -06:00
parent 560b39d359
commit 705c5cf2da
No known key found for this signature in database
GPG Key ID: A477BC03CAFCCAF7

View File

@ -1,4 +1,5 @@
name: CI name: CI
on: on:
push: push:
paths: paths:
@ -6,26 +7,25 @@ on:
pull_request: pull_request:
paths: paths:
- '**.zig' - '**.zig'
workflow_dispatch:
jobs: jobs:
build: build:
runs-on: ubuntu-latest strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{matrix.os}}
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: install software with:
run: | submodules: true
ZIG=$(wget --quiet --output-document=- https://ziglang.org/download/index.json | jq --raw-output '.master."x86_64-linux".tarball') - uses: goto-bus-stop/setup-zig@v1
echo installing $ZIG into ./zig/ with:
wget --quiet --output-document=- $ZIG | tar Jx version: master
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 - name: Build
run: zig build
test -f "$FILE" || exit 1 # ZLS Tests currently fail? Once they are passing and kept up to date, this can be enabled
zig build test || exit 1 # - name: Run Tests
# run: zig build test