Skip to content

Commit 1972e27

Browse files
committed
Run a smoke test in GitHub Actions
Signed-off-by: Ilya Leoshkevich <[email protected]>
1 parent 91712c9 commit 1972e27

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

.github/workflows/dotnet.yml

+23-1
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,31 @@ jobs:
275275
# See https://github.com/actions/upload-artifact/issues/174 for details.
276276
dotnet-versions
277277
output/
278-
release:
278+
test:
279279
needs: installer
280280
runs-on: ubuntu-latest
281+
strategy:
282+
matrix:
283+
# TODO: aspnetcore build fails on x64 with:
284+
# EXEC : error : Failed to load assembly 'System.Private.CoreLib'
285+
arch: [ppc64le, s390x]
286+
isV6:
287+
- ${{ startsWith(github.ref, 'refs/tags/v6.') }}
288+
exclude:
289+
- arch: ppc64le
290+
isV6: true
291+
steps:
292+
- name: Checkout
293+
uses: actions/checkout@v4
294+
- name: Download the ${{ matrix.arch }} installer artifacts
295+
uses: actions/download-artifact@v4
296+
with:
297+
name: installer-${{ matrix.arch }}
298+
- name: Run a smoke test
299+
run: ./dotnet-test-sdk output/dotnet-sdk-*-linux-${{ matrix.arch }}.tar.gz
300+
release:
301+
needs: test
302+
runs-on: ubuntu-latest
281303
strategy:
282304
matrix:
283305
arch: [x64]

.github/workflows/dotnet.yml.j2

+14-1
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,22 @@ jobs:
8686
{%- endif %}
8787
output/
8888
{%- endfor %}
89-
release:
89+
test:
9090
needs: installer
9191
runs-on: ubuntu-latest
92+
{{ matrix }}
93+
steps:
94+
- name: Checkout
95+
uses: actions/checkout@v4
96+
- name: Download the {% raw %}${{ matrix.arch }}{% endraw %} installer artifacts
97+
uses: actions/download-artifact@v4
98+
with:
99+
name: installer-{% raw %}${{ matrix.arch }}{% endraw %}
100+
- name: Run a smoke test
101+
run: ./dotnet-test-sdk output/dotnet-sdk-*-linux-{% raw %}${{ matrix.arch }}{% endraw %}.tar.gz
102+
release:
103+
needs: test
104+
runs-on: ubuntu-latest
92105
strategy:
93106
matrix:
94107
arch: [x64]

0 commit comments

Comments
 (0)