@@ -21,73 +21,56 @@ jobs:
21
21
- docker.io/library/alpine:latest
22
22
- docker.io/library/alpine:edge
23
23
- quay.io/centos/centos:stream9
24
- - quay.io/centos/centos:stream10-development
25
- - registry.fedoraproject.org/fedora:39
24
+ - quay.io/centos/centos:stream10
26
25
- registry.fedoraproject.org/fedora:40
26
+ - registry.fedoraproject.org/fedora:41
27
27
- registry.fedoraproject.org/fedora:rawhide
28
28
- registry.access.redhat.com/ubi8
29
29
- registry.access.redhat.com/ubi9
30
30
dotnet_version :
31
- - " 6.0"
32
31
- " 8.0"
32
+ - " 9.0"
33
33
exclude :
34
- - container_image : registry.fedoraproject.org/fedora:rawhide
35
- dotnet_version : " 6.0"
36
- - container_image : quay.io/centos/centos:stream10-development
37
- dotnet_version : " 6.0"
38
- include :
39
- - container_image : registry.fedoraproject.org/fedora:40
34
+ - container_image : docker.io/library/alpine:latest
40
35
dotnet_version : " 9.0"
41
- - container_image : registry.fedoraproject.org/fedora:rawhide
42
- dotnet_version : " 9.0"
43
- - container_image : quay.io/centos/centos:stream10-development
36
+ - container_image : docker.io/library/alpine:edge
44
37
dotnet_version : " 9.0"
45
38
46
39
container :
47
40
image : ${{ matrix.container_image }}
48
41
options : --security-opt seccomp=unconfined
49
42
50
-
51
43
steps :
52
44
- uses : actions/checkout@v4
53
45
54
46
- name : Install .NET ${{ matrix.dotnet_version }}
55
- # .NET 9 is a preview and requires 'copr' for installation.
56
47
# .NET 9 introduced the 'dotnet-sdk-aot' package
57
48
# .NET 8 introduced the 'dbg' packages
58
49
# '/etc/os-release' will also match the grep fedora for Fedora derived systems, such as CentOS.
59
50
timeout-minutes : 10
60
51
run : |
61
-
62
52
set -euo pipefail
63
53
cat /etc/os-release
64
- if [[ ${{ matrix.dotnet_version }} == 9.* ]]; then
65
- dnf install 'dnf-command(copr)' -y
66
- if grep centos /etc/os-release; then
67
- dnf copr enable @dotnet-sig/dotnet-preview centos-stream-10-x86_64 -y
68
- else
69
- dnf copr enable @dotnet-sig/dotnet-preview -y
70
- fi
71
- dnf install -y dotnet-sdk-aot-${{ matrix.dotnet_version }}
72
- fi
73
54
if grep fedora /etc/os-release; then
74
55
dnf install -y dotnet-sdk-${{ matrix.dotnet_version }}
75
- if [[ ! ${{ matrix.dotnet_version }} == *6* ]]; then
76
- dnf install -y \
77
- dotnet-sdk-dbg-${{ matrix.dotnet_version }} \
78
- dotnet-runtime-dbg-${{ matrix.dotnet_version }} \
79
- aspnetcore-runtime-dbg-${{ matrix.dotnet_version }}
80
- fi
56
+ dnf install -y \
57
+ dotnet-sdk-dbg-${{ matrix.dotnet_version }} \
58
+ dotnet-runtime-dbg-${{ matrix.dotnet_version }} \
59
+ aspnetcore-runtime-dbg-${{ matrix.dotnet_version }}
60
+ if ${{ matrix.dotnet_version }} == 9.* ; then
61
+ dnf install -y dotnet-sdk-aot-${{ matrix.dotnet_version }}
62
+ fi
81
63
elif grep alpine /etc/os-release; then
82
64
if grep edge /etc/os-release; then
83
65
echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
84
66
fi
85
67
apk add dotnet-sdk-${{ matrix.dotnet_version }} dotnet-doc
86
- if [[ ! ${{ matrix.dotnet_version }} == *6* ]]; then
87
- apk add \
88
- dotnet-sdk-dbg-${{ matrix.dotnet_version }} \
89
- dotnet-runtime-dbg-${{ matrix.dotnet_version }} \
90
- aspnetcore-runtime-dbg-${{ matrix.dotnet_version }}
68
+ apk add \
69
+ dotnet-sdk-dbg-${{ matrix.dotnet_version }} \
70
+ dotnet-runtime-dbg-${{ matrix.dotnet_version }} \
71
+ aspnetcore-runtime-dbg-${{ matrix.dotnet_version }}
72
+ if [ ${{ matrix.dotnet_version }} >= 9.* ]; then
73
+ apk add dotnet-sdk-aot-${{ matrix.dotnet_version }}
91
74
fi
92
75
fi
93
76
@@ -138,4 +121,4 @@ jobs:
138
121
if : ${{ always() }}
139
122
run : |
140
123
set -euo pipefail
141
- find -iname '*.log' -exec echo {} \; -exec cat {} \;
124
+ find -iname '*.log' -exec echo {} \; -exec cat {} \;
0 commit comments