mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
fix(ci-cd): Add .exe suffix for Windows releases
This commit is contained in:
parent
c6ca63477c
commit
dd6bcc4301
16
.github/workflows/release.yaml
vendored
16
.github/workflows/release.yaml
vendored
@ -59,7 +59,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GH_CONFIGLSP_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GH_CONFIGLSP_TOKEN }}
|
||||||
|
|
||||||
build-extension:
|
build-extension:
|
||||||
name: Build extension for ${{ matrix.target }}
|
name: Build extension for ${{ matrix.action_name }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
# Wait for server to build so that we know the checks have passed
|
# Wait for server to build so that we know the checks have passed
|
||||||
@ -71,23 +71,29 @@ jobs:
|
|||||||
- goos: linux
|
- goos: linux
|
||||||
goarch: amd64
|
goarch: amd64
|
||||||
vscode_target: linux-x64
|
vscode_target: linux-x64
|
||||||
|
action_name: Linux x64
|
||||||
- goos: linux
|
- goos: linux
|
||||||
goarch: arm64
|
goarch: arm64
|
||||||
vscode_target: linux-arm64
|
vscode_target: linux-arm64
|
||||||
|
action_name: Linux ARM
|
||||||
|
|
||||||
- goos: darwin
|
- goos: darwin
|
||||||
goarch: amd64
|
goarch: amd64
|
||||||
vscode_target: darwin-x64
|
vscode_target: darwin-x64
|
||||||
|
action_name: macOS x64
|
||||||
- goos: darwin
|
- goos: darwin
|
||||||
goarch: arm64
|
goarch: arm64
|
||||||
vscode_target: darwin-arm64
|
vscode_target: darwin-arm64
|
||||||
|
action_name: macOS ARM
|
||||||
|
|
||||||
- goos: windows
|
- goos: windows
|
||||||
goarch: amd64
|
goarch: amd64
|
||||||
vscode_target: win32-x64
|
vscode_target: win32-x64
|
||||||
|
action_name: Windows x64
|
||||||
- goos: windows
|
- goos: windows
|
||||||
goarch: arm64
|
goarch: arm64
|
||||||
vscode_target: win32-arm64
|
vscode_target: win32-arm64
|
||||||
|
action_name: Windows ARM
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@ -108,13 +114,21 @@ jobs:
|
|||||||
run: nix build .#"vs-code-extension-bare"
|
run: nix build .#"vs-code-extension-bare"
|
||||||
|
|
||||||
- name: Build extension
|
- name: Build extension
|
||||||
|
if: ${{ matrix.goos != 'windows' }}
|
||||||
run: cd server && GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -a -gcflags=all="-l -B" -ldflags="-s -w" -o config-lsp
|
run: cd server && GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -a -gcflags=all="-l -B" -ldflags="-s -w" -o config-lsp
|
||||||
|
- name: Build extension
|
||||||
|
if: ${{ matrix.goos == 'windows' }}
|
||||||
|
run: cd server && GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -a -gcflags=all="-l -B" -ldflags="-s -w" -o config-lsp.exe
|
||||||
|
|
||||||
- name: Prepare folder
|
- name: Prepare folder
|
||||||
run: cp -rL result dist && chmod -R 777 dist
|
run: cp -rL result dist && chmod -R 777 dist
|
||||||
|
|
||||||
- name: Move binary to extension
|
- name: Move binary to extension
|
||||||
|
if: ${{ matrix.goos != 'windows' }}
|
||||||
run: mv server/config-lsp dist/out/
|
run: mv server/config-lsp dist/out/
|
||||||
|
- name: Move binary to extension
|
||||||
|
if: ${{ matrix.goos == 'windows' }}
|
||||||
|
run: mv server/config-lsp.exe dist/out/
|
||||||
|
|
||||||
- name: Shrink binary
|
- name: Shrink binary
|
||||||
if: ${{ matrix.goos == 'linux' }}
|
if: ${{ matrix.goos == 'linux' }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user