Skip to content

Commit 4fdf08f

Browse files
committed
Add CI for build
1 parent 7667634 commit 4fdf08f

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: build
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Set up JDK 17
16+
uses: actions/setup-java@v3
17+
with:
18+
java-version: '17' # TODO: what version do we want?
19+
distribution: 'adopt'
20+
cache: maven
21+
22+
- name: Set up Node.js 18
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: '18.x' # TODO: what version do we want?
26+
# cache: npm # TODO: requires package-lock.json
27+
28+
- name: Build with Maven
29+
run: mvn install
30+
31+
- name: Build with NPM
32+
working-directory: ./vscode
33+
run: npm install
34+
35+
- name: Set up VSCE
36+
run: npm install -g @vscode/vsce
37+
38+
- name: Build with VSCE
39+
working-directory: ./vscode
40+
run: vsce package
41+
42+
- name: Upload plugin artifact
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: wiivi-plugin
46+
path: ./vscode/sv-comp-*.vsix

0 commit comments

Comments
 (0)