2023-09-23 10:15:24 +03:00
|
|
|
name: Enso Language Support for VSCode, IGV, NetBeans
|
2022-06-23 07:43:49 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [develop]
|
|
|
|
pull_request:
|
|
|
|
branches: [develop]
|
|
|
|
paths:
|
|
|
|
- "tools/enso4igv/**/*"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-02-12 09:38:11 +03:00
|
|
|
java: ["11"]
|
2022-06-23 07:43:49 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Java
|
|
|
|
uses: actions/setup-java@v2
|
|
|
|
with:
|
|
|
|
distribution: "zulu"
|
|
|
|
java-version: ${{ matrix.java }}
|
|
|
|
cache: maven
|
|
|
|
|
2024-01-18 18:57:45 +03:00
|
|
|
- name: Find out pom & micro versions
|
|
|
|
working-directory: tools/enso4igv
|
|
|
|
run: |
|
|
|
|
# Why do we subtract a number? Read versioning policy!
|
|
|
|
# https://github.com/enso-org/enso/pull/7861#discussion_r1333133490
|
|
|
|
echo "POM_VERSION=`mvn -q -DforceStdout help:evaluate -Dexpression=project.version | cut -f1 -d -`" >> "$GITHUB_ENV"
|
2024-02-12 09:38:11 +03:00
|
|
|
echo "MICRO_VERSION=`expr $GITHUB_RUN_NUMBER - 2250`" >> "$GITHUB_ENV"
|
2024-01-18 18:57:45 +03:00
|
|
|
|
2022-06-23 07:43:49 +03:00
|
|
|
- name: Update project version
|
|
|
|
working-directory: tools/enso4igv
|
|
|
|
run: |
|
2024-01-18 18:57:45 +03:00
|
|
|
echo "Setting version to $POM_VERSION.$MICRO_VERSION"
|
|
|
|
mvn versions:set -DnewVersion="$POM_VERSION.$MICRO_VERSION"
|
2022-06-23 07:43:49 +03:00
|
|
|
|
|
|
|
- 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
|
|
|
|
|
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
|
|
|
|
|
2023-02-28 16:43:26 +03:00
|
|
|
- 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
|