fix extension still downloading server from CI #7
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
name: Package VSIX | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.20" | |
cache-dependency-path: | | |
server/go.sum | |
- name: Prepare building environment | |
run: | | |
cd client | |
npm install | |
- name: Build for Linux x86_64 | |
run: | | |
cd client | |
GOOS=linux GOARCH=amd64 npx vsce package -t linux-x64 -o vls-linux.vsix | |
rm -r bin | |
- name: Upload Linux x86_64 artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: vls-linux-amd64 | |
path: client/vls-linux.vsix | |
- name: Build for Windows x86_64 | |
run: | | |
cd client | |
GOOS=windows GOARCH=amd64 npx vsce package -t win32-x64 -o vls-windows.vsix | |
rm -r bin | |
- name: Upload Windows x86_64 artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: vls-windows-amd64 | |
path: client/vls-windows.vsix | |
- name: Build for macOS x86_64 | |
run: | | |
cd client | |
GOOS=darwin GOARCH=amd64 npx vsce package -t darwin-x64 -o vls-darwin.vsix | |
rm -r bin | |
- name: Upload macOS x86_64 artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: vls-darwin-amd64 | |
path: client/vls-darwin.vsix |