-
Notifications
You must be signed in to change notification settings - Fork 4.6k
51 lines (45 loc) · 1.39 KB
/
pr-build-upload-vsix.yaml
File metadata and controls
51 lines (45 loc) · 1.39 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
name: PR Build And Upload VSIX
# Builds and uploads VSIX artifacts for the `oneper` script across Linux, Windows, and macOS ARM platforms
on:
pull_request:
branches:
- main
jobs:
build-and-upload-vsix:
runs-on: ${{ matrix.runner }}
timeout-minutes: 10
strategy:
matrix:
include:
- platform: linux
arch: x64
runner: ubuntu-latest
- platform: win32
arch: x64
runner: windows-latest
- platform: darwin
arch: arm64
runner: macos-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Build VS Code extension
uses: ./.github/actions/build-vscode-extension
with:
platform: ${{ matrix.platform }}
arch: ${{ matrix.arch }}
npm_config_arch: ${{ matrix.arch }}
pre-release: false
commit-sha: ${{ github.sha }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload build artifact
uses: actions/upload-artifact@v7
with:
name: vscode-extension-build-${{ matrix.platform }}-${{ matrix.arch }}
path: extensions/vscode/build
- name: Upload .vsix artifact
uses: actions/upload-artifact@v7
with:
name: ${{ matrix.platform }}-${{ matrix.arch }}-vsix
path: "extensions/vscode/*.vsix"