Skip to content

Commit e24588c

Browse files
alhad-deshpandeiii-i
authored andcommitted
Updated CI job to build aspnetcore before sdk and removed installer
Signed-off-by: Alhad Deshpande <[email protected]>
1 parent d27c39a commit e24588c

File tree

2 files changed

+16
-68
lines changed

2 files changed

+16
-68
lines changed

.github/workflows/dotnet.yml

+12-58
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ jobs:
142142
local-downloads/
143143
local-packages/
144144
output/
145-
sdk:
145+
aspnetcore:
146146
needs: roslyn
147147
runs-on: ubuntu-latest
148148
strategy:
@@ -175,51 +175,6 @@ jobs:
175175
uses: actions/download-artifact@v3 # Newer versions are not compatible with Ubuntu 18.04
176176
with:
177177
name: roslyn-${{ matrix.arch }}
178-
- name: Prepare
179-
run: ./dotnet-prepare sdk
180-
- name: Build
181-
run: ARCH=${{ matrix.arch }} ./dotnet-build sdk
182-
- name: Upload the intermediate results
183-
uses: actions/upload-artifact@v3 # Newer versions are not compatible with Ubuntu 18.04
184-
with:
185-
name: sdk-${{ matrix.arch }}
186-
path: |
187-
local-downloads/
188-
local-packages/
189-
output/
190-
aspnetcore:
191-
needs: sdk
192-
runs-on: ubuntu-latest
193-
strategy:
194-
matrix:
195-
# TODO: aspnetcore build fails on x64 with:
196-
# EXEC : error : Failed to load assembly 'System.Private.CoreLib'
197-
arch: [ppc64le, s390x]
198-
isV6:
199-
- ${{ startsWith(github.ref, 'refs/tags/v6.') }}
200-
exclude:
201-
- arch: ppc64le
202-
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-
steps:
212-
- name: Configure git
213-
run: git config --global user.email [email protected] &&
214-
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)" .
219-
- name: Download the previous stage's artifacts
220-
uses: actions/download-artifact@v3 # Newer versions are not compatible with Ubuntu 18.04
221-
with:
222-
name: sdk-${{ matrix.arch }}
223178
- name: Prepare
224179
run: ./dotnet-prepare aspnetcore
225180
- name: Build
@@ -232,7 +187,7 @@ jobs:
232187
local-downloads/
233188
local-packages/
234189
output/
235-
installer:
190+
sdk:
236191
needs: aspnetcore
237192
runs-on: ubuntu-latest
238193
strategy:
@@ -266,20 +221,19 @@ jobs:
266221
with:
267222
name: aspnetcore-${{ matrix.arch }}
268223
- name: Prepare
269-
run: ./dotnet-prepare installer
224+
run: ./dotnet-prepare sdk
270225
- name: Build
271-
run: ARCH=${{ matrix.arch }} ./dotnet-build installer
226+
run: ARCH=${{ matrix.arch }} ./dotnet-build sdk
272227
- name: Upload the intermediate results
273228
uses: actions/upload-artifact@v3 # Newer versions are not compatible with Ubuntu 18.04
274229
with:
275-
name: installer-${{ matrix.arch }}
230+
name: sdk-${{ matrix.arch }}
276231
path: |
277-
# Use a dummy file to preserve the directory structure.
278-
# See https://github.com/actions/upload-artifact/issues/174 for details.
279-
dotnet-versions
232+
local-downloads/
233+
local-packages/
280234
output/
281235
release:
282-
needs: installer
236+
needs: sdk
283237
runs-on: ubuntu-latest
284238
strategy:
285239
matrix:
@@ -301,15 +255,15 @@ jobs:
301255
uses: actions/checkout@v1 # Newer versions are not compatible with Ubuntu 18.04
302256
- name: Fix the repository ownership
303257
run: chown -R "$(id -u):$(id -g)" .
304-
- name: Download the ppc64le installer artifacts
258+
- name: Download the ppc64le sdk artifacts
305259
uses: actions/download-artifact@v3 # Newer versions are not compatible with Ubuntu 18.04
306260
with:
307-
name: installer-ppc64le
261+
name: sdk-ppc64le
308262
if: ${{ !startsWith(github.ref, 'refs/tags/v6.') }}
309-
- name: Download the s390x installer artifacts
263+
- name: Download the s390x sdk artifacts
310264
uses: actions/download-artifact@v3 # Newer versions are not compatible with Ubuntu 18.04
311265
with:
312-
name: installer-s390x
266+
name: sdk-s390x
313267
- name: Create a release
314268
run: gh release create --notes "" "${{ github.ref_name }}" output/*
315269
env:

.github/workflows/dotnet.yml.j2

+4-10
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717

1818
{%- set arches = ['ppc64le', 's390x'] -%}
1919

20-
{%- set projects = ['runtime', 'msbuild', 'roslyn', 'sdk', 'aspnetcore', 'installer'] %}
20+
{%- set projects = ['runtime', 'msbuild', 'roslyn', 'aspnetcore', 'sdk'] %}
2121

2222
{%- set matrix -%}
2323
strategy:
@@ -79,18 +79,12 @@ jobs:
7979
with:
8080
name: {{ projects[i] }}-{% raw %}${{ matrix.arch }}{% endraw %}
8181
path: |
82-
{%- if projects[i] != 'installer' %}
8382
local-downloads/
8483
local-packages/
85-
{%- else %}
86-
# Use a dummy file to preserve the directory structure.
87-
# See https://github.com/actions/upload-artifact/issues/174 for details.
88-
dotnet-versions
89-
{%- endif %}
9084
output/
9185
{%- endfor %}
9286
release:
93-
needs: installer
87+
needs: sdk
9488
runs-on: ubuntu-latest
9589
strategy:
9690
matrix:
@@ -100,10 +94,10 @@ jobs:
10094
steps:
10195
{{ checkout_steps }}
10296
{%- for arch in arches %}
103-
- name: Download the {{ arch }} installer artifacts
97+
- name: Download the {{ arch }} sdk artifacts
10498
uses: actions/download-artifact@v3 # Newer versions are not compatible with Ubuntu 18.04
10599
with:
106-
name: installer-{{ arch }}
100+
name: sdk-{{ arch }}
107101
{%- if arch == 'ppc64le' %}
108102
if: {% raw %}${{ !startsWith(github.ref, 'refs/tags/v6.') }}{% endraw %}
109103
{%- endif %}

0 commit comments

Comments
 (0)