This repository has been archived by the owner on Oct 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gh action to release roslyn server package (#9)
- Loading branch information
1 parent
0e8ff42
commit 7501931
Showing
4 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Download and Release Roslyn | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
type: string | ||
description: 'Version to download and release' | ||
|
||
jobs: | ||
check-and-build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
rid: ['osx-x64', 'osx-arm64', 'linux-x64', 'linux-arm64', 'win-x64', 'win-x86'] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: roslyn | ||
sparse-checkout: server | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
global-json-file: roslyn/server/global.json | ||
|
||
- name: Download for ${{ matrix.rid }} | ||
working-directory: roslyn/server | ||
run: > | ||
dotnet restore | ||
/p:PackageName=microsoft.codeanalysis.languageserver.${{ matrix.rid }} | ||
/p:PackageVersion=${{ github.event.inputs.version }} | ||
- name: Package downloaded files | ||
run: > | ||
tar -czvf roslyn-${{ github.event.inputs.version }}-${{ matrix.rid }}.tar.gz | ||
-C roslyn/server/out/microsoft.codeanalysis.languageserver.osx-arm64/${{ github.event.inputs.version }}/content/LanguageServer/${{ matrix.rid }} . | ||
# Create a new release and upload the build artifact | ||
- name: Create Release and Upload Artifact | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
name: Roslyn Language Server ${{ github.event.inputs.version }} | ||
tag_name: ${{ github.event.inputs.version }} | ||
files: roslyn-${{ github.event.inputs.version }}-${{ matrix.rid }}.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<packageSources> | ||
<clear /> | ||
<add key="msft_consumption" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/nuget/v3/index.json" /> | ||
</packageSources> | ||
<disabledPackageSources> | ||
<clear /> | ||
</disabledPackageSources> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<Project Sdk="Microsoft.Build.NoTargets/1.0.80"> | ||
<PropertyGroup> | ||
<RestorePackagesPath>out</RestorePackagesPath> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder> | ||
<AutomaticallyUseReferenceAssemblyPackages>false</AutomaticallyUseReferenceAssemblyPackages> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageDownload Include="$(PackageName)" version="[$(PackageVersion)]" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"sdk": { | ||
"version": "7.0.401", | ||
"rollForward": "latestFeature" | ||
} | ||
} |