-
Notifications
You must be signed in to change notification settings - Fork 0
150 lines (147 loc) · 4.65 KB
/
rcaron.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
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: 7.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: 7.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: 7.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: 7.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: 7.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: 7.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: 7.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: 7.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: 7.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: 7.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 }}