forked from holatuwol/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 3
70 lines (70 loc) · 2.56 KB
/
build-poshi-vscode-extension.yaml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
jobs:
build:
runs-on: ${{matrix.os}}
steps:
- name: set up git for checkout
run: git config --global core.longpaths 260
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 14.x
- env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
npm_config_arch: ${{matrix.npm_config_arch}}
name: install node modules
run: npm install
working-directory: ./modules/test/poshi/poshi-vscode
- name: set target
run: echo "target=${{ matrix.platform }}-${{ matrix.arch }}" >> $env:GITHUB_ENV
shell: pwsh
- name: build package
run: npx vsce package --target ${{env.target}}
working-directory: ./modules/test/poshi/poshi-vscode
- uses: actions/upload-artifact@v2
with:
name: ${{env.target}}
path: "./modules/test/poshi/poshi-vscode/*.vsix"
strategy:
matrix:
include:
- arch: x64
npm_config_arch: x64
os: windows-latest
platform: win32
- arch: ia32
npm_config_arch: ia32
os: windows-latest
platform: win32
- arch: arm64
npm_config_arch: arm
os: windows-latest
platform: win32
- arch: x64
npm_config_arch: x64
os: ubuntu-latest
platform: linux
- arch: arm64
npm_config_arch: arm64
os: ubuntu-latest
platform: linux
- arch: armhf
npm_config_arch: arm
os: ubuntu-latest
platform: linux
- arch: x64
npm_config_arch: x64
os: ubuntu-latest
platform: alpine
- arch: x64
npm_config_arch: x64
os: macos-latest
platform: darwin
- arch: arm64
npm_config_arch: arm64
os: macos-latest
platform: darwin
name: Build Poshi VSCode Extension
on:
workflow_dispatch:
permissions:
contents: read