zls/.github/workflows/main.yml

35 lines
744 B
YAML
Raw Normal View History

2020-05-14 14:49:05 +01:00
name: CI
2020-11-04 22:50:29 +00:00
2020-05-14 15:09:50 +01:00
on:
push:
paths:
- '**.zig'
pull_request:
paths:
- '**.zig'
2020-11-04 23:11:01 +00:00
schedule:
- cron: '0 0 * * *'
2020-11-04 22:50:29 +00:00
workflow_dispatch:
2020-05-14 15:09:50 +01:00
2020-05-14 14:49:05 +01:00
jobs:
build:
2020-11-04 22:50:29 +00:00
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
2020-11-04 23:15:57 +00:00
runs-on: ${{ matrix.os }}
2020-05-14 14:49:05 +01:00
steps:
2020-11-04 22:50:29 +00:00
- uses: actions/checkout@v2
with:
submodules: true
- uses: goto-bus-stop/setup-zig@v1
with:
version: master
2020-05-14 14:57:19 +01:00
2020-11-04 22:50:29 +00:00
- name: Build
run: zig build
2020-05-14 14:57:19 +01:00
2020-11-04 23:15:57 +00:00
# ZLS Tests currently fail on windows? Once they are passing and kept up to date, this can be enabled everywhere
- name: Run Tests
if: ${{ matrix.os == 'ubuntu-latest' }}
run: zig build test