-
Notifications
You must be signed in to change notification settings - Fork 56
54 lines (51 loc) · 1.44 KB
/
pr-assets.yml
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 PR assets
on:
pull_request:
branches: [ master ]
permissions:
contents: write
jobs:
build:
name: Build assets
strategy:
matrix:
include:
- vsce_target: win32-x64
bin_target: windows-amd64
npm_config_arch: x64
- vsce_target: win32-arm64
bin_target: windows-arm64
npm_config_arch: arm
- vsce_target: linux-x64
bin_target: linux-amd64
npm_config_arch: x64
- vsce_target: linux-arm64
bin_target: linux-arm64
npm_config_arch: arm64
- vsce_target: darwin-x64
bin_target: darwin-amd64
npm_config_arch: x64
- vsce_target: darwin-arm64
bin_target: darwin-arm64
npm_config_arch: arm64
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "16.13.1"
- name: Install
run: yarn
env:
npm_config_arch: ${{ matrix.npm_config_arch }}
- name: Package extension
run: yarn vscode:package -- --target=${{ matrix.vsce_target }}
env:
INFRACOST_BIN_TARGET: ${{ matrix.bin_target }}
- name: Upload vsix as artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.vsce_target }}
path: "*.vsix"