Skip to content

Commit

Permalink
fix order of building and cleaning intermediary files
Browse files Browse the repository at this point in the history
  • Loading branch information
rtk0c committed Nov 14, 2024
1 parent acc0562 commit fc68578
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions .github/workflows/vsix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,42 @@ jobs:
with:
go-version: "1.20"

- name: Build
- name: Prepare building environment
run: |
cd client
npm install
mkdir out
TARGET_OS=windows TARGET_ARCH=amd64 npx vsce package -t linux-x64 -o vls-linux.vsix
rm out/*
TARGET_OS=windows TARGET_ARCH=amd64 npx vsce package -t win32-x64 -o vls-windows.vsix
rm out/*
TARGET_OS=windows TARGET_ARCH=amd64 npx vsce package -t darwin-x64 -o vls-darwin.vsix
- name: Upload Linux Artifact
- 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: Upload Windows Artifact
- 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: Upload Darwin Artifact
- 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
Expand Down

0 comments on commit fc68578

Please sign in to comment.