Skip to content

Enabled windows build #468

Enabled windows build

Enabled windows build #468

name: Build and Test VSCode extension
on:
push:
branches: '**'
pull_request:
branches: [main]
jobs:
build:
name: Build Plugin
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
runtime: [ linux, mac, windows ]
include:
- runtime: linux
os: ubuntu-latest
reportName: linux-test-report
- runtime: mac
os: macOS-latest
reportName: mac-test-report
- runtime: windows
os: windows-latest
reportName: windows-test-report
steps:
# Checkout the eclipse plugin repository.
- name: 'Setup: Checkout plugin'
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
# Install the required software.
- name: 'Setup: Install required software'
run: bash ./src/test/resources/ci/scripts/setup.sh
# Build the plugin.
- name: 'Build: Build-Package'
run: bash ./src/test/resources/ci/scripts/exec.sh BUILD
# Archive artifacts
- name: Archive artifacts
if: runner.os == 'linux' && matrix.targetVSCode == 'latest'
uses: actions/upload-artifact@v3
with:
name: liberty-tools-vscode-${{ github.sha }}
path: ./**/*.vsix
if-no-files-found: warn
retention-days: 7
# Build the plugin.
- name: 'Test: RunTests'
run: bash ./src/test/resources/ci/scripts/exec.sh TEST ${{ matrix.targetVSCode }}