Skip to content

Fix build for latest zig 0.12.0-dev.3451+405502286 #45

Fix build for latest zig 0.12.0-dev.3451+405502286

Fix build for latest zig 0.12.0-dev.3451+405502286 #45

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@v2
with:
version: master
- run: zig env
- run: zig build
- name: Build artifacts
run: |
wget https://raw.githubusercontent.com/microsoft/vscode-languageserver-node/main/protocol/metaModel.json
zig build run -- metaModel.json artifacts/lsp.zig
- run: zig fmt --ast-check --check artifacts/lsp.zig
- name: Upload artifacts
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v2
with:
name: builds
path: artifacts/*