Merge pull request #185 from truemedian/master

Update Github Workflows
This commit is contained in:
Alexandros Naskos 2020-11-05 01:17:31 +02:00 committed by GitHub
commit ab9bf89c25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
name: CI name: CI
on: on:
push: push:
paths: paths:
@ -6,26 +7,28 @@ on:
pull_request: pull_request:
paths: paths:
- '**.zig' - '**.zig'
schedule:
- cron: '0 0 * * *'
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 on windows? Once they are passing and kept up to date, this can be enabled everywhere
zig build test || exit 1 - name: Run Tests
if: ${{ matrix.os == 'ubuntu-latest' }}
run: zig build test