Skip to content

Build .vsix per target platform #4

Build .vsix per target platform

Build .vsix per target platform #4

Workflow file for this run

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"
- name: Prepare building environment
run: |
cd client
npm install
- name: Build for Linux x86_64
run: |
cd client
TARGET_OS=linux TARGET_ARCH=amd64 npx vsce package -t linux-x64 -o vls-linux.vsix
rm -r bin
- name: Upload Linux x86_64 artifact
uses: actions/upload-artifact@v3
with:
name: vls-linux-amd64
path: client/vls-linux.vsix
- name: Build for Windows x86_64
run: |
cd client
TARGET_OS=windows TARGET_ARCH=amd64 npx vsce package -t win32-x64 -o vls-windows.vsix
rm -r bin
- name: Upload Windows x86_64 artifact
uses: actions/upload-artifact@v3
with:
name: vls-windows-amd64
path: client/vls-windows.vsix
- name: Build for macOS x86_64
run: |
cd client
TARGET_OS=darwin TARGET_ARCH=amd64 npx vsce package -t darwin-x64 -o vls-darwin.vsix
rm -r bin
- name: Upload macOS x86_64 artifact
uses: actions/upload-artifact@v3
with:
name: vls-darwin-amd64
path: client/vls-darwin.vsix