Skip to content

Added highlighting for metadata on enumerators. (#60) #53

Added highlighting for metadata on enumerators. (#60)

Added highlighting for metadata on enumerators. (#60) #53

Workflow file for this run

name: vsix
on:
push:
branches:
- main
pull_request:
branches:
- "main"
# See https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build-language-server:
timeout-minutes: 10
strategy:
matrix:
include:
- os: macos-14
target: x86_64-apple-darwin
bin: slice-language-server
- os: macos-14
target: aarch64-apple-darwin
bin: slice-language-server
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
bin: slice-language-server
- os: ubuntu-22.04
target: aarch64-unknown-linux-gnu
bin: slice-language-server
- os: windows-2022
target: x86_64-pc-windows-msvc
bin: slice-language-server.exe
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build-language-server
with:
cargo-build-args: --release
target: ${{ matrix.target }}
- name: Upload language server
uses: actions/upload-artifact@v4
with:
name: slice-language-server_${{ matrix.target }}
path: ./server/target/${{ matrix.target }}/release/${{ matrix.bin }}
if-no-files-found: error
build-vsix:
needs: build-language-server
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download language server
uses: actions/download-artifact@v4
with:
path: ./server/target
- name: Move language servers
run: |
set -eux
cd ./server/target
for archive in slice-language-server_*; do
target=${archive#slice-language-server_}
mv $archive ${target}
mkdir ${target}/release
mv ${target}/slice-language-server* ${target}/release
chmod +x ${target}/release/*
done
# Print the contents of the directory to make sure everything is in the right place
find .
- uses: actions/setup-node@v4
- name: Install dependencies
run: npm ci
- name: Build VSIX
run: npx @vscode/vsce package
- name: Get package version
id: package-version
run: echo "VERSION=$(npm pkg get version | jq -r)" >> "$GITHUB_OUTPUT"
- uses: actions/upload-artifact@v4
with:
name: "slice-${{ steps.package-version.outputs.VERSION }}.vsix"
path: "slice-${{ steps.package-version.outputs.VERSION }}.vsix"
if-no-files-found: error