Skip to content

Langium

Langium #13

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: jPipe Language Extension
on:
push:
paths:
- '/langium/**'
workflow_call: # Allow the workflow to be called by others
workflow_dispatch: # Can be triggered manually
env:
NODEJS_VERSION: '21.2.0'
JPIPE_VERSION: '0.1.0' # Release tag for the latest stable jpipe compiler
FOLDER: './langium' # Source code location
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{env.FOLDER}}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Embed latest stable version of the compiler
uses: wei/wget@v1
with:
args: -O ./jar/jpipe.jar https://github.com/ace-design/jpipe/releases/download/{{env.JPIPE_VERSION}}/jpipe.jar
- name: Set up node.js
uses: actions/setup-node@v4
with:
node-version: '{{env.NODEJS_VERSION}}'
- name: Install vsce to package code
run: |
npm install -g @vscode/vsce
- name: Package extension as VSIX artefact
run: |
vsce package -o jpipe-extension.vsix
- name: Upload VSIX artefact
uses: actions/upload-artifact@v4
with:
name: Visual Code extension
path: jpipe-extension.vsix