2022-06-23 07:43:49 +03:00
|
|
|
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
|
|
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
|
|
|
|
|
|
|
|
name: Enso Language Support for IGV
|
|
|
|
|
|
|
|
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: |
|
|
|
|
mvn versions:set -DnewVersion=`mvn -q -DforceStdout help:evaluate -Dexpression=project.version | cut -f1 -d -`.$GITHUB_RUN_NUMBER
|
|
|
|
|
|
|
|
- name: Build with Maven
|
2023-01-06 17:18:20 +03:00
|
|
|
run: mvn -B -Pvsix package --file tools/enso4igv/pom.xml
|
2022-06-23 07:43:49 +03:00
|
|
|
- name: Archive NBM file
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: Enso IGV Plugin
|
|
|
|
path: tools/enso4igv/target/*.nbm
|
2023-02-28 16:43:26 +03:00
|
|
|
|
|
|
|
- name: Install Node.js modules
|
|
|
|
run: mvn -B -Pvsix npm:install --file tools/enso4igv/pom.xml
|
|
|
|
|
|
|
|
- name: Build VSCode Extension
|
|
|
|
run: mvn -B -Pvsix npm:run@vsix --file tools/enso4igv/pom.xml
|