-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: Add CI build Signed-off-by: Ce Gao <[email protected]> * fix: Update Signed-off-by: Ce Gao <[email protected]> * Update Signed-off-by: Ce Gao <[email protected]> * Update Signed-off-by: Ce Gao <[email protected]> * Update Signed-off-by: Ce Gao <[email protected]> * fix: Update Signed-off-by: Ce Gao <[email protected]>
- Loading branch information
Showing
4 changed files
with
142 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
paths: | ||
- '.github/workflows/release.yml' | ||
- '.goreleaser.yaml' | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.18 | ||
- name: Docker Login | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: setup release environment | ||
run: |- | ||
echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env | ||
- name: Run GoReleaser | ||
run: make release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
builds: | ||
- id: linux-build | ||
main: ./cmd/envd-lsp | ||
env: | ||
- CGO_ENABLED=1 | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
ignore: | ||
- goos: linux | ||
goarch: 386 | ||
- id: darwin-build | ||
main: ./cmd/envd-lsp | ||
ldflags: | ||
- -s | ||
env: | ||
- CGO_ENABLED=1 | ||
- PKG_CONFIG_SYSROOT_DIR=/sysroot/macos/amd64 | ||
- PKG_CONFIG_PATH=/sysroot/macos/amd64/usr/local/lib/pkgconfig | ||
- CC=o64-clang | ||
- CXX=o64-clang++ | ||
goos: | ||
- darwin | ||
goarch: | ||
- amd64 | ||
ignore: | ||
- goos: darwin | ||
goarch: 386 | ||
archives: | ||
- id: linux-build | ||
format: binary | ||
builds: | ||
- linux-build | ||
replacements: | ||
linux: Linux | ||
amd64: x86_64 | ||
- id: darwin-build | ||
format: binary | ||
builds: | ||
- darwin-build | ||
replacements: | ||
darwin: Darwin | ||
amd64: x86_64 | ||
checksum: | ||
name_template: 'checksums.txt' | ||
snapshot: | ||
name_template: "{{ incpatch .Version }}-next" | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^build:' | ||
- '^ci:' | ||
- '^docs:' | ||
- '^test:' | ||
- '^chore:' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Language server for envd | ||
|
||
A language server for envd, a Python-inspired configuration language. | ||
|
||
envd-lsp uses [starlark-lsp](https://github.com/tilt-dev/starlark-lsp/), [go.lsp.dev](https://go.lsp.dev/) and [Tree sitter](https://tree-sitter.github.io/tree-sitter/) as its main dependencies to implement the LSP/JSON-RPC protocol and envd language analysis, respectively. | ||
|
||
## Build from source | ||
|
||
``` | ||
make | ||
``` | ||
|
||
## CLI | ||
|
||
``` | ||
NAME: | ||
envd-lsp - language server for envd | ||
USAGE: | ||
envd-lsp [global options] command [command options] [arguments...] | ||
COMMANDS: | ||
help, h Shows a list of commands or help for one command | ||
GLOBAL OPTIONS: | ||
--address value Address (hostname:port) to listen on | ||
--debug Enable debug logging (default: false) | ||
--help, -h show help (default: false) | ||
--version, -v print the version (default: false) | ||
``` |