Skip to content

+ added support for inlay exception hints (#90) #48

+ added support for inlay exception hints (#90)

+ added support for inlay exception hints (#90) #48

Workflow file for this run

on:
push:
tags:
- 'v*' # "v1.2.3"
branches:
- master
paths-ignore: ['media/**', 'docs/**', '**/*.md']
pull_request:
paths-ignore: ['media/**', 'docs/**', '**/*.md']
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: true
matrix:
target:
- os: linux
triple: x86_64-linux-musl
name: linux
cpu: amd64
- os: macosx
triple: x86_64-apple-darwin14
name: apple
cpu: amd64
- os: windows
triple: x86_64-w64-mingw32
name: windows
cpu: amd64
include:
- target:
os: linux
builder: ubuntu-20.04
- target:
os: macosx
builder: macos-11
- target:
os: windows
builder: windows-2019
defaults:
run:
shell: bash
name: '${{ matrix.target.triple }}'
runs-on: ${{ matrix.builder }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Nimble
uses: nim-lang/nimble/.github/actions/install_nimble@master
with:
os: ${{ matrix.target.name }}
cpu: ${{ matrix.target.cpu }}
- name: Restore nimble dependencies from cache
id: nimble_deps
uses: actions/cache@v3
with:
path: ~/.nimble/
key: ${{ matrix.target.os }}-${{ env.cache_nonce }}
- name: build nimlangserver
run: |
nimble build -d:release
- name: Compress the Nim Language Server binaries
run: |
tar -czvf nimlangserver-${{ matrix.target.name }}.tar.gz `ls nimlangserver{,.exe} 2>/dev/null || true`
- name: Upload the Nim Language Server Binaries
uses: actions/upload-artifact@v2
with:
name: nimlangserver-${{ matrix.target.name }}.tar.gz
path: nimlangserver-${{ matrix.target.name }}.tar.gz
create-github-release:
name: Create Github Release
needs: [build]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download artefacts
uses: actions/download-artifact@v2
- uses: ncipollo/release-action@v1
with:
name: Latest Nimlangserver Binaries
artifacts: "*/*"
allowUpdates: true
makeLatest: true
prerelease: true
tag: latest
- name: Delete artefacts
uses: geekyeggo/delete-artifact@v1
with:
failOnError: false
name: "nimlangserver-*"