enso/.github/workflows/enso4igv.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.5 KiB
YAML
Raw Normal View History

2023-09-23 10:15:24 +03:00
name: Enso Language Support for VSCode, IGV, NetBeans
on:
push:
branches: [develop]
pull_request:
branches: [develop]
paths:
- "tools/enso4igv/**/*"
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
java: ["8"]
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: "zulu"
java-version: ${{ matrix.java }}
cache: maven
- name: Update project version
working-directory: tools/enso4igv
run: |
2023-09-23 10:15:24 +03:00
mvn versions:set -DnewVersion=`mvn -q -DforceStdout help:evaluate -Dexpression=project.version | cut -f1 -d -`.`expr $GITHUB_RUN_NUMBER - 1666`
- name: Build with Maven
run: mvn -B -Pvsix package --file tools/enso4igv/pom.xml
- name: Archive NBM file
uses: actions/upload-artifact@v3
with:
name: Enso IGV Plugin
path: tools/enso4igv/target/*.nbm
- name: Install Node.js modules
run: mvn -B -Pvsix npm:install --file tools/enso4igv/pom.xml
2023-09-23 10:15:24 +03:00
- name: Update package.json version
run: mvn -B -Pvsix npm:exec@version --file tools/enso4igv/pom.xml
- name: Build VSCode Extension
run: mvn -B -Pvsix npm:run@vsix --file tools/enso4igv/pom.xml
2023-09-23 10:15:24 +03:00
- name: Archive VSCode extension
uses: actions/upload-artifact@v3
with:
name: VSCode Extension
path: tools/enso4igv/*.vsix