Skip to content

Commit

Permalink
Improve CI to build GUI from submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
pplam committed Dec 14, 2023
1 parent 95d6ea6 commit e87b933
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,29 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]

outputs:
version: ${{ steps.properties.outputs.version }}
changelog: ${{ steps.properties.outputs.changelog }}
pluginVerifierHomeDir: ${{ steps.properties.outputs.pluginVerifierHomeDir }}
steps:

steps:
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v4
- name: Get latest version of main.html and main.js
run: |
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
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
run: git submodule update --init --recursive

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Build GUI
run: cd gui && yarn && yarn idea

# Validate wrapper
- name: Gradle Wrapper Validation
Expand Down

0 comments on commit e87b933

Please sign in to comment.