release: v0.1.1 #264
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: rcaron | |
on: [ push, pull_request ] | |
# we currently have to use `-maxcpucount:1` because of https://github.com/dotnet/sdk/issues/2902 | |
jobs: | |
rcaron-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET Core SDK | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: restore | |
run: dotnet restore RCaron | |
- name: build | |
run: dotnet build RCaron --no-restore -maxcpucount:1 | |
rcaron-test: | |
needs: rcaron-build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET Core SDK | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: restore | |
run: dotnet restore RCaron.Tests | |
- name: build | |
run: dotnet build RCaron.Tests --no-restore -maxcpucount:1 | |
- name: test | |
run: dotnet test RCaron.Tests --no-build | |
rcaron-jit-build: | |
needs: rcaron-build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET Core SDK | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: restore | |
run: dotnet restore RCaron.Jit | |
- name: build | |
run: dotnet build RCaron.Jit --no-restore -maxcpucount:1 | |
rcaron-jit-test: | |
needs: rcaron-jit-build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET Core SDK | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: restore | |
run: dotnet restore RCaron.Jit.Tests | |
- name: build | |
run: dotnet build RCaron.Jit.Tests --no-restore -maxcpucount:1 | |
- name: test | |
run: dotnet test RCaron.Jit.Tests --no-build | |
cli-build: | |
needs: rcaron-build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET Core SDK | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: restore | |
run: dotnet restore RCaron.Cli | |
- name: build | |
run: dotnet build RCaron.Cli --no-restore -maxcpucount:1 | |
language-server-build: | |
needs: rcaron-build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET Core SDK | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: restore | |
run: dotnet restore RCaron.LanguageServer | |
- name: build | |
run: dotnet build RCaron.LanguageServer --no-restore -maxcpucount:1 | |
benchmarks-build-and-check: | |
needs: rcaron-build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET Core SDK | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: restore | |
run: dotnet restore RCaron.Benchmarks | |
- name: build | |
run: dotnet build RCaron.Benchmarks --no-restore -maxcpucount:1 | |
- name: check | |
run: dotnet run --project RCaron.Benchmarks --no-build -- checkAllWork | |
shell-build: | |
needs: rcaron-build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET Core SDK | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: restore | |
run: dotnet restore RCaron.Shell | |
- name: build | |
run: dotnet build RCaron.Shell --no-restore -maxcpucount:1 | |
shell-test: | |
needs: shell-build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET Core SDK | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: restore | |
run: dotnet restore RCaron.Shell.Tests | |
- name: build | |
run: dotnet build RCaron.Shell.Tests --no-restore -maxcpucount:1 | |
- name: test | |
run: dotnet test RCaron.Shell.Tests --no-build | |
nuget-releases: | |
needs: [rcaron-test, rcaron-jit-test, language-server-build, shell-test] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
project: [RCaron, RCaron.AutoCompletion, RCaron.Jit, RCaron.LanguageServer, RCaron.LibrarySourceGenerator, RCaron.LibrarySourceGenerator.Attributes, RCaron.Shell] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET Core SDK | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: pack | |
run: dotnet pack ${{ matrix.project }} -c release -o ./${{ matrix.project }}/bin/nupkg | |
- name: push | |
if: startsWith(github.ref, 'refs/tags/') | |
run: dotnet nuget push ./${{ matrix.project }}/bin/nupkg/*.nupkg -k ${NUGET_KEY} -s https://api.nuget.org/v3/index.json | |
env: | |
NUGET_KEY: ${{ secrets.NUGET_KEY }} |