Skip to content

Check for null to fix #76 #483

Check for null to fix #76

Check for null to fix #76 #483

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Test
run: cd server && go test -v ./...
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Go
uses: actions/setup-go@v5
-
name: Build
uses: crazy-max/ghaction-xgo@v3
with:
xgo_version: latest
go_version: 1.21
dest: /home/runner/work/repo-name/builds
prefix: c3-lsp
targets: windows/amd64,linux/amd64,linux/arm64,darwin/arm64
v: true
x: false
race: false
ldflags: -s -w
buildmode: default
pkg: cmd/lsp
working_dir: server
trimpath: true
-
name: Upload assets
uses: actions/upload-artifact@v4
with:
name: c3-lsp
path: /home/runner/work/repo-name/builds/*