From 705c5cf2da5ed6cc12947389862b63b1150be7de Mon Sep 17 00:00:00 2001 From: Nameless Date: Wed, 4 Nov 2020 16:50:29 -0600 Subject: [PATCH 1/3] Update Github Workflows --- .github/workflows/main.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 42ff46c..f4b85f0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,5 @@ name: CI + on: push: paths: @@ -6,26 +7,25 @@ on: pull_request: paths: - '**.zig' + workflow_dispatch: jobs: build: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{matrix.os}} 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 + - uses: actions/checkout@v2 + with: + submodules: true + - uses: goto-bus-stop/setup-zig@v1 + with: + version: master - FILE=zig-cache/bin/zls + - name: Build + run: zig build - test -f "$FILE" || exit 1 - zig build test || exit 1 + # ZLS Tests currently fail? Once they are passing and kept up to date, this can be enabled + # - name: Run Tests + # run: zig build test From fd08bf178927075d44a4f6e9c36e4d7fd6e3033d Mon Sep 17 00:00:00 2001 From: Nameless Date: Wed, 4 Nov 2020 17:11:01 -0600 Subject: [PATCH 2/3] add: run CI daily --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f4b85f0..acd1d9e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,6 +7,8 @@ on: pull_request: paths: - '**.zig' + schedule: + - cron: '0 0 * * *' workflow_dispatch: jobs: From 69bd1903df70e6eb15ad6c6f70d79d0397904f0d Mon Sep 17 00:00:00 2001 From: Nameless Date: Wed, 4 Nov 2020 17:15:57 -0600 Subject: [PATCH 3/3] add: run tests on linux --- .github/workflows/main.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index acd1d9e..1ea6ba9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - runs-on: ${{matrix.os}} + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 with: @@ -28,6 +28,7 @@ jobs: - name: Build run: zig build - # ZLS Tests currently fail? Once they are passing and kept up to date, this can be enabled - # - name: Run Tests - # run: zig build test + # 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