From 7498222a5f1b10e5bc79a2e380a0c6ee992217ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Standa=20Luke=C5=A1?= Date: Wed, 7 Dec 2022 20:17:50 +0100 Subject: [PATCH] Publish LS with the .NET Native module --- .github/workflows/publish.yml | 10 ++++++++++ src/native-lib-dotvvm-spy/build.ps1 | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4342d00..c6200e0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -46,6 +46,16 @@ jobs: cd src/tree-sitter-dotvvm yarn install --immutable yarn build + - name: Build .NET native module + if: ${{ matrix.os == 'ubuntu-latest' }} + run: | + cd src/native-lib-dotvvm-spy + ./build.sh + - name: Build .NET native module + if: ${{ matrix.os == 'windows-latest' }} + run: | + cd src/native-lib-dotvvm-spy + ./build.ps1 - name: Build language server run: | cd src/dothtml-basic-ls diff --git a/src/native-lib-dotvvm-spy/build.ps1 b/src/native-lib-dotvvm-spy/build.ps1 index d799718..1112fe4 100644 --- a/src/native-lib-dotvvm-spy/build.ps1 +++ b/src/native-lib-dotvvm-spy/build.ps1 @@ -2,9 +2,9 @@ dotnet publish /p:NativeLib=Shared /p:SelfContained=true -r win-x64 -c Release Copy-Item -Force -Verbose ./bin/Release/net7.0/win-x64/native/* bin/ cd node_binding -Remove-Item -Recurse build +Remove-Item -Recurse build -ErrorAction Ignore yarn install yarn build yarn sanity-check -cd .. \ No newline at end of file +cd ..