diff --git a/.github/workflows/validate-install-from-source.yml b/.github/workflows/validate-install-from-source.yml index ff28dc85c2..5535bac833 100644 --- a/.github/workflows/validate-install-from-source.yml +++ b/.github/workflows/validate-install-from-source.yml @@ -14,19 +14,19 @@ jobs: fail-fast: false matrix: vector: - - image: ubuntu - - image: debian:bullseye - - image: fedora - # Centos no longer officially maintains images on Docker Hub. However, - # tgagor is a contributor who pushes updated images weekly, which should - # be sufficient for our validation needs. - - image: tgagor/centos - - image: tgagor/centos-stream - - image: redhat/ubi8 - - image: alpine - - image: opensuse/leap - - image: opensuse/tumbleweed - - image: registry.suse.com/suse/sle15:15.4.27.11.31 + - image: ubuntu:latest + - image: debian:bullseye + - image: fedora + # Centos no longer officially maintains images on Docker Hub. However, + # tgagor is a contributor who pushes updated images weekly, which should + # be sufficient for our validation needs. + - image: tgagor/centos + - image: tgagor/centos-stream + - image: redhat/ubi8 + - image: alpine + - image: opensuse/leap + - image: opensuse/tumbleweed + - image: registry.suse.com/suse/sle15:15.4.27.11.31 container: ${{matrix.vector.image}} steps: - run: | diff --git a/src/linux/Packaging.Linux/install-from-source.sh b/src/linux/Packaging.Linux/install-from-source.sh index df586ce1c5..aefe83edaa 100755 --- a/src/linux/Packaging.Linux/install-from-source.sh +++ b/src/linux/Packaging.Linux/install-from-source.sh @@ -186,10 +186,16 @@ case "$distribution" in ensure_dotnet_installed ;; alpine) + # Check that the version is at least 3.15 + if [[ $(echo "$version 3.15" | awk '{print ($1 < $2)}') -ne 0 ]]; then + echo "You are running Alpine $version. This script requires at least Alpine 3.15." + exit 1 + fi + $sudo_cmd apk update # Install dotnet/GCM dependencies. - install_packages apk add "curl git icu-libs krb5-libs libgcc libintl libssl1.1 libstdc++ zlib which bash coreutils gcompat" + install_packages apk add "curl git icu-libs krb5-libs libgcc libintl libssl3 libstdc++ zlib which bash coreutils gcompat" ensure_dotnet_installed ;;