Skip to content

Commit e87b933

Browse files
committed
Improve CI to build GUI from submodule
1 parent 95d6ea6 commit e87b933

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,29 @@ jobs:
2626
build:
2727
name: Build
2828
runs-on: ubuntu-latest
29+
30+
strategy:
31+
matrix:
32+
node-version: [14.x]
33+
2934
outputs:
3035
version: ${{ steps.properties.outputs.version }}
3136
changelog: ${{ steps.properties.outputs.changelog }}
3237
pluginVerifierHomeDir: ${{ steps.properties.outputs.pluginVerifierHomeDir }}
33-
steps:
3438

39+
steps:
3540
# Check out current repository
3641
- name: Fetch Sources
3742
uses: actions/checkout@v4
38-
- name: Get latest version of main.html and main.js
39-
run: |
40-
wget $(curl -s https://api.github.com/repositories/709076669/releases/latest | grep -oP '"browser_download_url": "\K(.*)(?=")' | grep main.html) -O src/main/resources/static/main.html
41-
wget $(curl -s https://api.github.com/repositories/709076669/releases/latest | grep -oP '"browser_download_url": "\K(.*)(?=")' | grep main.js) -O src/main/resources/static/main.js
43+
run: git submodule update --init --recursive
44+
45+
- name: Use Node.js ${{ matrix.node-version }}
46+
uses: actions/setup-node@v4
47+
with:
48+
node-version: ${{ matrix.node-version }}
49+
50+
- name: Build GUI
51+
run: cd gui && yarn && yarn idea
4252

4353
# Validate wrapper
4454
- name: Gradle Wrapper Validation

0 commit comments

Comments
 (0)