-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathdotnet-6.yaml
186 lines (171 loc) · 5.84 KB
/
dotnet-6.yaml
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
package:
name: dotnet-6
version: 6.0.127 # We'll likely be able to remove the fix for CVE-2024-0057 at the next version.
epoch: 1
description: ".NET SDK, version 6"
copyright:
- license: MIT
dependencies:
runtime:
- icu
environment:
contents:
packages:
- bash
- build-base
- busybox
- ca-certificates-bundle
- clang-15
- clang-15-default
- cmake
- curl
- glibc-locale-en
- icu-dev
- krb5-dev
- libunwind-dev
- llvm15
- llvm15-cmake-default
- llvm15-dev
- llvm15-tools
- lttng-ust-dev
- ncurses-dev
- openssl-dev
- python3
- samurai
- wolfi-base
- zlib-dev
pipeline:
- uses: git-checkout
with:
repository: https://github.com/dotnet/installer
tag: v${{package.version}}
expected-commit: d761c25068115f91ba88cdeb5d72271757d0d0f0
destination: /home/build/installer
- working-directory: /home/build/installer
runs: |
./build.sh --configuration Release /p:ArcadeBuildTarball=true /p:TarballDir=/home/build/src
- working-directory: /home/build/src
environment:
# Build NuGet packages in RTM mode.
BuildRTM: true
# Prevents prerelease dependency errors.
NoWarn: NU5104
pipeline:
- runs: |
sed -i -E 's|( /p:BuildDebPackage=false)|\1 /p:EnablePackageValidation=false|' src/runtime/eng/SourceBuild.props
sed -i -E 's|( /p:BuildDebPackage=false)|\1 --cmakeargs -DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE|' src/runtime/eng/SourceBuild.props
./prep.sh --bootstrap
- assertions:
required-steps: 1
pipeline:
- if: ${{build.arch}} == 'aarch64'
runs: |
./build.sh --online --clean-while-building \
-- \
/v:n \
/p:ContinueOnPrebuiltBaselineError=true \
/p:MinimalConsoleLogOutput=false \
/p:PrebuiltPackagesPath=/home/build/src/packages \
/p:SkipPortableRuntimeBuild=true \
/p:TargetRid=linux-arm64
- if: ${{build.arch}} == 'x86_64'
runs: |
./build.sh --online --clean-while-building \
-- \
/v:n \
/p:ContinueOnPrebuiltBaselineError=true \
/p:MinimalConsoleLogOutput=false \
/p:PrebuiltPackagesPath=/home/build/src/packages \
/p:SkipPortableRuntimeBuild=true \
/p:TargetRid=linux-x64
- runs: |
mkdir -p "${{targets.destdir}}"/usr/share/dotnet
mkdir -p "${{targets.destdir}}"/usr/bin
- assertions:
required-steps: 1
pipeline:
- if: ${{build.arch}} == 'aarch64'
runs: |
tar zxf artifacts/arm64/Release/dotnet-sdk-*.tar.gz -C "${{targets.destdir}}"/usr/share/dotnet
- if: ${{build.arch}} == 'x86_64'
runs: |
tar zxf artifacts/x64/Release/dotnet-sdk-*.tar.gz -C "${{targets.destdir}}"/usr/share/dotnet
- runs: |
ln -s /usr/share/dotnet/dotnet "${{targets.destdir}}"/usr/bin/dotnet
- uses: strip
subpackages:
- name: dotnet-6-runtime
description: "The .NET Core Runtime, version 6"
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/share/dotnet/shared
mv "${{targets.destdir}}"/usr/share/dotnet/shared/Microsoft.NETCore.App "${{targets.subpkgdir}}"/usr/share/dotnet/shared/
dependencies:
runtime:
- dotnet-6
- name: dotnet-6-runtime-default
dependencies:
runtime:
- dotnet-6-runtime
provides:
- dotnet-runtime=6
- name: aspnet-6-runtime
description: "The ASP.NET Core Runtime, version 6"
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/share/dotnet/shared
mv "${{targets.destdir}}"/usr/share/dotnet/shared/Microsoft.AspNetCore.App "${{targets.subpkgdir}}"/usr/share/dotnet/shared/
dependencies:
runtime:
- dotnet-6-runtime
- name: aspnet-6-runtime-default
dependencies:
runtime:
- aspnet-6-runtime
provides:
- aspnet-runtime=6
- name: dotnet-6-targeting-pack
description: "The .NET Core targeting pack, version 6"
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/share/dotnet/packs
mv "${{targets.destdir}}"/usr/share/dotnet/packs/NETStandard.Library.* "${{targets.subpkgdir}}"/usr/share/dotnet/packs/
mv "${{targets.destdir}}"/usr/share/dotnet/packs/Microsoft.NETCore.App.* "${{targets.subpkgdir}}"/usr/share/dotnet/packs/
- name: aspnet-6-targeting-pack
description: "The ASP.NET targeting pack, version 6"
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/share/dotnet/packs
mv "${{targets.destdir}}"/usr/share/dotnet/packs/Microsoft.AspNetCore.App.* "${{targets.subpkgdir}}"/usr/share/dotnet/packs/
dependencies:
runtime:
- dotnet-6-targeting-pack
- name: dotnet-6-sdk
description: "The .NET Core SDK, version 6"
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/share/dotnet
for i in sdk sdk-manifests templates; do
mv "${{targets.destdir}}"/usr/share/dotnet/$i "${{targets.subpkgdir}}"/usr/share/dotnet/
done
dependencies:
runtime:
- dotnet-6-runtime
- aspnet-6-runtime
- dotnet-6-targeting-pack
- aspnet-6-targeting-pack
- name: dotnet-6-sdk-default
dependencies:
runtime:
- dotnet-6-sdk
- dotnet-6-runtime-default
- aspnet-6-runtime-default
provides:
- dotnet-sdk=6
update:
enabled: true
github:
identifier: dotnet/installer
strip-prefix: v
use-tag: true
tag-filter: "v6.0.1" # We specifically the 6.0.1xx releases since those are intended for prod.