This repository has been archived by the owner on Oct 13, 2024. It is now read-only.
Download and Release Roslyn #3
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
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 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
global-json-file: server/global.json | |
- name: Download for ${{ matrix.rid }} | |
run: > | |
dotnet restore ./server | |
/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 server/out/microsoft.codeanalysis.languageserver.${{ matrix.rid }}/${{ 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 |