-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (46 loc) · 1.55 KB
/
Copy pathbuild.yml
File metadata and controls
54 lines (46 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Build VSCode Extension (multi-platform)
on:
push:
branches: [master]
pull_request:
workflow_dispatch: {}
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-15-intel]
node: [20]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Install dependencies (including dev)
run: npm ci
- name: Compile TypeScript
run: npm run compile
- name: Package VSIX
shell: bash
run: |
case "${{ matrix.os }}" in
windows-latest)
npx @vscode/vsce package --target win32-x64
;;
ubuntu-latest)
npx @vscode/vsce package --target linux-x64
;;
macos-latest)
npx @vscode/vsce package --target darwin-arm64
;;
macos-15-intel)
npx @vscode/vsce package --target darwin-x64
;;
esac
- name: Upload VSIX artifact
uses: actions/upload-artifact@v4
with:
name: vscode-extension-${{ matrix.os }}
path: '*.vsix'