@@ -16,36 +16,30 @@ jobs:
16
16
runs-on : ubuntu-latest
17
17
strategy :
18
18
matrix :
19
- # TODO: aspnetcore build fails on x64 with:
20
- # EXEC : error : Failed to load assembly 'System.Private.CoreLib'
21
19
arch : [ppc64le, s390x]
22
20
isV6 :
23
21
- ${{ startsWith(github.ref, 'refs/tags/v6.') }}
24
22
exclude :
25
23
- arch : ppc64le
26
24
isV6 : true
27
- container :
28
- image : ghcr.io/ibm/dotnet-${{ matrix.arch }}-toolchain:latest
29
- credentials :
30
- username : ${{ github.actor }}
31
- password : ${{ secrets.GITHUB_TOKEN }}
32
- # Workaround for the following:
33
- # fatal: detected dubious ownership in repository at '/__w/dotnet-s390x/dotnet-s390x'
34
- options : --user root
35
25
steps :
36
26
- name : Configure git
37
27
run :
git config --global user.email [email protected] &&
38
28
git config --global user.name "dotnet-s390x bot"
39
- - name : Checkout
40
- uses : actions/checkout@v1 # Newer versions are not compatible with Ubuntu 18.04
41
- - name : Fix the repository ownership
42
- run : chown -R "$(id -u):$(id -g)" .
29
+ - name : Checkout dotnet-s390x
30
+ uses : actions/checkout@v4
31
+ - name : Login to GitHub Container Registry
32
+ uses : docker/login-action@v3
33
+ with :
34
+ registry : ghcr.io
35
+ username : ${{ github.actor }}
36
+ password : ${{ secrets.GITHUB_TOKEN }}
43
37
- name : Prepare
44
38
run : ./dotnet-prepare runtime
45
39
- name : Build
46
- run : ARCH=${{ matrix.arch }} ./dotnet-build runtime
40
+ run : ARCH=${{ matrix.arch }} ./docker/run-image ghcr.io/ibm/dotnet-${{ matrix.arch }}-toolchain:latest ./ dotnet-build runtime
47
41
- name : Upload the intermediate results
48
- uses : actions/upload-artifact@v3 # Newer versions are not compatible with Ubuntu 18.04
42
+ uses : actions/upload-artifact@v4
49
43
with :
50
44
name : runtime-${{ matrix.arch }}
51
45
path : |
@@ -57,40 +51,34 @@ jobs:
57
51
runs-on : ubuntu-latest
58
52
strategy :
59
53
matrix :
60
- # TODO: aspnetcore build fails on x64 with:
61
- # EXEC : error : Failed to load assembly 'System.Private.CoreLib'
62
54
arch : [ppc64le, s390x]
63
55
isV6 :
64
56
- ${{ startsWith(github.ref, 'refs/tags/v6.') }}
65
57
exclude :
66
58
- arch : ppc64le
67
59
isV6 : true
68
- container :
69
- image : ghcr.io/ibm/dotnet-${{ matrix.arch }}-toolchain:latest
70
- credentials :
71
- username : ${{ github.actor }}
72
- password : ${{ secrets.GITHUB_TOKEN }}
73
- # Workaround for the following:
74
- # fatal: detected dubious ownership in repository at '/__w/dotnet-s390x/dotnet-s390x'
75
- options : --user root
76
60
steps :
77
61
- name : Configure git
78
62
run :
git config --global user.email [email protected] &&
79
63
git config --global user.name "dotnet-s390x bot"
80
- - name : Checkout
81
- uses : actions/checkout@v1 # Newer versions are not compatible with Ubuntu 18.04
82
- - name : Fix the repository ownership
83
- run : chown -R "$(id -u):$(id -g)" .
64
+ - name : Checkout dotnet-s390x
65
+ uses : actions/checkout@v4
66
+ - name : Login to GitHub Container Registry
67
+ uses : docker/login-action@v3
68
+ with :
69
+ registry : ghcr.io
70
+ username : ${{ github.actor }}
71
+ password : ${{ secrets.GITHUB_TOKEN }}
84
72
- name : Download the previous stage's artifacts
85
- uses : actions/download-artifact@v3 # Newer versions are not compatible with Ubuntu 18.04
73
+ uses : actions/download-artifact@v4
86
74
with :
87
75
name : runtime-${{ matrix.arch }}
88
76
- name : Prepare
89
77
run : ./dotnet-prepare msbuild
90
78
- name : Build
91
- run : ARCH=${{ matrix.arch }} ./dotnet-build msbuild
79
+ run : ARCH=${{ matrix.arch }} ./docker/run-image ghcr.io/ibm/dotnet-${{ matrix.arch }}-toolchain:latest ./ dotnet-build msbuild
92
80
- name : Upload the intermediate results
93
- uses : actions/upload-artifact@v3 # Newer versions are not compatible with Ubuntu 18.04
81
+ uses : actions/upload-artifact@v4
94
82
with :
95
83
name : msbuild-${{ matrix.arch }}
96
84
path : |
@@ -102,40 +90,34 @@ jobs:
102
90
runs-on : ubuntu-latest
103
91
strategy :
104
92
matrix :
105
- # TODO: aspnetcore build fails on x64 with:
106
- # EXEC : error : Failed to load assembly 'System.Private.CoreLib'
107
93
arch : [ppc64le, s390x]
108
94
isV6 :
109
95
- ${{ startsWith(github.ref, 'refs/tags/v6.') }}
110
96
exclude :
111
97
- arch : ppc64le
112
98
isV6 : true
113
- container :
114
- image : ghcr.io/ibm/dotnet-${{ matrix.arch }}-toolchain:latest
115
- credentials :
116
- username : ${{ github.actor }}
117
- password : ${{ secrets.GITHUB_TOKEN }}
118
- # Workaround for the following:
119
- # fatal: detected dubious ownership in repository at '/__w/dotnet-s390x/dotnet-s390x'
120
- options : --user root
121
99
steps :
122
100
- name : Configure git
123
101
run :
git config --global user.email [email protected] &&
124
102
git config --global user.name "dotnet-s390x bot"
125
- - name : Checkout
126
- uses : actions/checkout@v1 # Newer versions are not compatible with Ubuntu 18.04
127
- - name : Fix the repository ownership
128
- run : chown -R "$(id -u):$(id -g)" .
103
+ - name : Checkout dotnet-s390x
104
+ uses : actions/checkout@v4
105
+ - name : Login to GitHub Container Registry
106
+ uses : docker/login-action@v3
107
+ with :
108
+ registry : ghcr.io
109
+ username : ${{ github.actor }}
110
+ password : ${{ secrets.GITHUB_TOKEN }}
129
111
- name : Download the previous stage's artifacts
130
- uses : actions/download-artifact@v3 # Newer versions are not compatible with Ubuntu 18.04
112
+ uses : actions/download-artifact@v4
131
113
with :
132
114
name : msbuild-${{ matrix.arch }}
133
115
- name : Prepare
134
116
run : ./dotnet-prepare roslyn
135
117
- name : Build
136
- run : ARCH=${{ matrix.arch }} ./dotnet-build roslyn
118
+ run : ARCH=${{ matrix.arch }} ./docker/run-image ghcr.io/ibm/dotnet-${{ matrix.arch }}-toolchain:latest ./ dotnet-build roslyn
137
119
- name : Upload the intermediate results
138
- uses : actions/upload-artifact@v3 # Newer versions are not compatible with Ubuntu 18.04
120
+ uses : actions/upload-artifact@v4
139
121
with :
140
122
name : roslyn-${{ matrix.arch }}
141
123
path : |
@@ -147,40 +129,34 @@ jobs:
147
129
runs-on : ubuntu-latest
148
130
strategy :
149
131
matrix :
150
- # TODO: aspnetcore build fails on x64 with:
151
- # EXEC : error : Failed to load assembly 'System.Private.CoreLib'
152
132
arch : [ppc64le, s390x]
153
133
isV6 :
154
134
- ${{ startsWith(github.ref, 'refs/tags/v6.') }}
155
135
exclude :
156
136
- arch : ppc64le
157
137
isV6 : true
158
- container :
159
- image : ghcr.io/ibm/dotnet-${{ matrix.arch }}-toolchain:latest
160
- credentials :
161
- username : ${{ github.actor }}
162
- password : ${{ secrets.GITHUB_TOKEN }}
163
- # Workaround for the following:
164
- # fatal: detected dubious ownership in repository at '/__w/dotnet-s390x/dotnet-s390x'
165
- options : --user root
166
138
steps :
167
139
- name : Configure git
168
140
run :
git config --global user.email [email protected] &&
169
141
git config --global user.name "dotnet-s390x bot"
170
- - name : Checkout
171
- uses : actions/checkout@v1 # Newer versions are not compatible with Ubuntu 18.04
172
- - name : Fix the repository ownership
173
- run : chown -R "$(id -u):$(id -g)" .
142
+ - name : Checkout dotnet-s390x
143
+ uses : actions/checkout@v4
144
+ - name : Login to GitHub Container Registry
145
+ uses : docker/login-action@v3
146
+ with :
147
+ registry : ghcr.io
148
+ username : ${{ github.actor }}
149
+ password : ${{ secrets.GITHUB_TOKEN }}
174
150
- name : Download the previous stage's artifacts
175
- uses : actions/download-artifact@v3 # Newer versions are not compatible with Ubuntu 18.04
151
+ uses : actions/download-artifact@v4
176
152
with :
177
153
name : roslyn-${{ matrix.arch }}
178
154
- name : Prepare
179
155
run : ./dotnet-prepare aspnetcore
180
156
- name : Build
181
- run : ARCH=${{ matrix.arch }} ./dotnet-build aspnetcore
157
+ run : ARCH=${{ matrix.arch }} ./docker/run-image ghcr.io/ibm/dotnet-${{ matrix.arch }}-toolchain:latest ./ dotnet-build aspnetcore
182
158
- name : Upload the intermediate results
183
- uses : actions/upload-artifact@v3 # Newer versions are not compatible with Ubuntu 18.04
159
+ uses : actions/upload-artifact@v4
184
160
with :
185
161
name : aspnetcore-${{ matrix.arch }}
186
162
path : |
@@ -192,40 +168,34 @@ jobs:
192
168
runs-on : ubuntu-latest
193
169
strategy :
194
170
matrix :
195
- # TODO: aspnetcore build fails on x64 with:
196
- # EXEC : error : Failed to load assembly 'System.Private.CoreLib'
197
171
arch : [ppc64le, s390x]
198
172
isV6 :
199
173
- ${{ startsWith(github.ref, 'refs/tags/v6.') }}
200
174
exclude :
201
175
- arch : ppc64le
202
176
isV6 : true
203
- container :
204
- image : ghcr.io/ibm/dotnet-${{ matrix.arch }}-toolchain:latest
205
- credentials :
206
- username : ${{ github.actor }}
207
- password : ${{ secrets.GITHUB_TOKEN }}
208
- # Workaround for the following:
209
- # fatal: detected dubious ownership in repository at '/__w/dotnet-s390x/dotnet-s390x'
210
- options : --user root
211
177
steps :
212
178
- name : Configure git
213
179
run :
git config --global user.email [email protected] &&
214
180
git config --global user.name "dotnet-s390x bot"
215
- - name : Checkout
216
- uses : actions/checkout@v1 # Newer versions are not compatible with Ubuntu 18.04
217
- - name : Fix the repository ownership
218
- run : chown -R "$(id -u):$(id -g)" .
181
+ - name : Checkout dotnet-s390x
182
+ uses : actions/checkout@v4
183
+ - name : Login to GitHub Container Registry
184
+ uses : docker/login-action@v3
185
+ with :
186
+ registry : ghcr.io
187
+ username : ${{ github.actor }}
188
+ password : ${{ secrets.GITHUB_TOKEN }}
219
189
- name : Download the previous stage's artifacts
220
- uses : actions/download-artifact@v3 # Newer versions are not compatible with Ubuntu 18.04
190
+ uses : actions/download-artifact@v4
221
191
with :
222
192
name : aspnetcore-${{ matrix.arch }}
223
193
- name : Prepare
224
194
run : ./dotnet-prepare sdk
225
195
- name : Build
226
- run : ARCH=${{ matrix.arch }} ./dotnet-build sdk
196
+ run : ARCH=${{ matrix.arch }} ./docker/run-image ghcr.io/ibm/dotnet-${{ matrix.arch }}-toolchain:latest ./ dotnet-build sdk
227
197
- name : Upload the intermediate results
228
- uses : actions/upload-artifact@v3 # Newer versions are not compatible with Ubuntu 18.04
198
+ uses : actions/upload-artifact@v4
229
199
with :
230
200
name : sdk-${{ matrix.arch }}
231
201
path : |
@@ -239,29 +209,25 @@ jobs:
239
209
matrix :
240
210
arch : [x64]
241
211
if : ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
242
- container :
243
- image : ghcr.io/ibm/dotnet-${{ matrix.arch }}-toolchain:latest
244
- credentials :
245
- username : ${{ github.actor }}
246
- password : ${{ secrets.GITHUB_TOKEN }}
247
- # Workaround for the following:
248
- # fatal: detected dubious ownership in repository at '/__w/dotnet-s390x/dotnet-s390x'
249
- options : --user root
250
212
steps :
251
213
- name : Configure git
252
214
run :
git config --global user.email [email protected] &&
253
215
git config --global user.name "dotnet-s390x bot"
254
- - name : Checkout
255
- uses : actions/checkout@v1 # Newer versions are not compatible with Ubuntu 18.04
256
- - name : Fix the repository ownership
257
- run : chown -R "$(id -u):$(id -g)" .
216
+ - name : Checkout dotnet-s390x
217
+ uses : actions/checkout@v4
218
+ - name : Login to GitHub Container Registry
219
+ uses : docker/login-action@v3
220
+ with :
221
+ registry : ghcr.io
222
+ username : ${{ github.actor }}
223
+ password : ${{ secrets.GITHUB_TOKEN }}
258
224
- name : Download the ppc64le sdk artifacts
259
- uses : actions/download-artifact@v3 # Newer versions are not compatible with Ubuntu 18.04
225
+ uses : actions/download-artifact@v4
260
226
with :
261
227
name : sdk-ppc64le
262
228
if : ${{ !startsWith(github.ref, 'refs/tags/v6.') }}
263
229
- name : Download the s390x sdk artifacts
264
- uses : actions/download-artifact@v3 # Newer versions are not compatible with Ubuntu 18.04
230
+ uses : actions/download-artifact@v4
265
231
with :
266
232
name : sdk-s390x
267
233
- name : Create a release
0 commit comments