diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f2ddc6a0..b7ba212f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -356,7 +356,7 @@ jobs: ############# - name: Build project uses: game-ci/unity-builder@main - timeout-minutes: 15 + timeout-minutes: 35 with: unityVersion: ${{ matrix.version }} customImage: editor:ubuntu-dev diff --git a/images/ubuntu/base/Dockerfile b/images/ubuntu/base/Dockerfile index e02340fd..b4d75c66 100644 --- a/images/ubuntu/base/Dockerfile +++ b/images/ubuntu/base/Dockerfile @@ -1,4 +1,4 @@ -ARG ubuntuImage="ubuntu:18.04" +ARG ubuntuImage="ubuntu:22.04" FROM $ubuntuImage # Fixes a Gradle crash while building for Android on Unity 2019 when there are accented characters in environment variables @@ -27,12 +27,12 @@ RUN apt-get -q update \ libxss1 \ cpio \ lsb-release \ - python \ - python-setuptools \ xvfb \ xz-utils \ && apt-get clean \ - && rm -rf /var/lib/apt/lists/* + && rm -rf /var/lib/apt/lists/* \ + && rm -rf /usr/share/icons/* \ + && rm -rf /usr/lib/python3.10/__pycache__/* # Toolbox RUN apt-get -q update \ @@ -52,14 +52,17 @@ RUN apt-get -q update \ # libstdc++6 upgrade RUN apt-get -q update \ - && apt-get -q install -y --no-install-recommends software-properties-common \ - && add-apt-repository -y ppa:ubuntu-toolchain-r/test \ - && apt-get -q install -y --only-upgrade libstdc++6 \ - && add-apt-repository -y --remove ppa:ubuntu-toolchain-r/test \ - && apt-get -q remove -y --auto-remove software-properties-common \ + && apt-get install -y --no-install-recommends --allow-downgrades \ + libstdc++6 \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* +# Fix "No useable version of libssl" for Ubuntu 22.04 +# https://forum.unity.com/threads/workaround-for-libssl-issue-on-ubuntu-22-04.1271405/ +RUN wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb \ + && dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb \ + && rm libssl1.1_1.1.1f-1ubuntu2_amd64.deb + # Disable default sound card, which removes ALSA warnings RUN /bin/echo -e 'pcm.!default {\n\ type plug\n\ diff --git a/images/ubuntu/editor/Dockerfile b/images/ubuntu/editor/Dockerfile index 581c1c1d..ce326e65 100644 --- a/images/ubuntu/editor/Dockerfile +++ b/images/ubuntu/editor/Dockerfile @@ -85,7 +85,11 @@ RUN echo "$version-$module" | grep -q -v '^\(2019.3.[6-9]f\|2019.3.1[0-9]f\|2019 #======================================================================================= RUN echo "$version-$module" | grep -q -v '^\(2020.1\|2020.2.0f\|2020.2.1f\).*-webgl' \ && exit 0 \ - || echo 'export GZIP=-f' >> /usr/bin/unity-editor.d/webgl-2020.1-2.sh + || : \ + && wget https://old-releases.ubuntu.com/ubuntu/pool/main/g/gzip/gzip_1.6-5ubuntu2_amd64.deb \ + && dpkg -i gzip_1.6-5ubuntu2_amd64.deb \ + && rm gzip_1.6-5ubuntu2_amd64.deb \ + && echo 'export GZIP=-f' >> /usr/bin/unity-editor.d/webgl-2020.1-2.sh ########################### @@ -231,7 +235,7 @@ RUN echo "$module" | grep -q -v 'webgl' \ && rm -rf /var/lib/apt/lists/* #======================================================================================= -# [webgl, il2cpp] python python-setuptools build-essential clang +# [webgl, il2cpp] build-essential clang #======================================================================================= RUN echo "$module" | grep -q -v '\(webgl\|linux-il2cpp\)' \ && exit 0 \ @@ -244,7 +248,7 @@ RUN echo "$module" | grep -q -v '\(webgl\|linux-il2cpp\)' \ && rm -rf /var/lib/apt/lists/* #======================================================================================= -# [2019.x] libnotify4 libunwind-dev libssl1.0 +# [2019.x] libnotify4 libunwind-dev libssl1.0.0 #======================================================================================= RUN echo "$version" | grep -q -v '^2019.' \ && exit 0 \ @@ -253,9 +257,26 @@ RUN echo "$version" | grep -q -v '^2019.' \ && apt-get -q install -y --no-install-recommends --allow-downgrades \ libnotify4 \ libunwind-dev \ - libssl1.0 \ && apt-get clean \ - && rm -rf /var/lib/apt/lists/* + && rm -rf /var/lib/apt/lists/* \ + # Install libssl1.0.0 + && wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.0.0_1.0.2g-1ubuntu4.20_amd64.deb \ + && dpkg -i libssl1.0.0_1.0.2g-1ubuntu4.20_amd64.deb \ + && rm libssl1.0.0_1.0.2g-1ubuntu4.20_amd64.deb + +#======================================================================================= +# [2018.x/2019.x/2020.x/2021.1.x-webgl] python2 +#======================================================================================= + +RUN echo "$version-$module" | grep -q -v '^\(2018\|2019\|2020\|2021.1\).*webgl' \ + && exit 0 \ + || : \ + && apt-get -q update \ + && apt-get -q install -y --no-install-recommends --allow-downgrades \ + python-setuptools \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* \ + && ln -s /usr/bin/python2 /usr/bin/python #======================================================================================= # [2018.x/2019.x/2020.1.x-webgl] support brotli compression for linux diff --git a/images/ubuntu/hub/Dockerfile b/images/ubuntu/hub/Dockerfile index b7be5725..e3df9488 100644 --- a/images/ubuntu/hub/Dockerfile +++ b/images/ubuntu/hub/Dockerfile @@ -9,9 +9,9 @@ RUN apt-get -q update \ # Install Unity Hub # https://docs.unity3d.com/hub/manual/InstallHub.html#install-hub-linux -RUN sh -c 'echo "deb https://hub.unity3d.com/linux/repos/deb stable main" > /etc/apt/sources.list.d/unityhub.list' \ - && sh -c 'echo "deb https://hub.unity3d.com/linux/repos/deb unstable main" > /etc/apt/sources.list.d/unityhub-beta.list' \ - && wget -qO - https://hub.unity3d.com/linux/keys/public | apt-key add - \ +RUN wget -qO - https://hub.unity3d.com/linux/keys/public | gpg --dearmor | tee /usr/share/keyrings/Unity_Technologies_ApS.gpg > /dev/null \ + && sh -c 'echo "deb [signed-by=/usr/share/keyrings/Unity_Technologies_ApS.gpg] https://hub.unity3d.com/linux/repos/deb stable main" > /etc/apt/sources.list.d/unityhub.list' \ + && sh -c 'echo "deb [signed-by=/usr/share/keyrings/Unity_Technologies_ApS.gpg] https://hub.unity3d.com/linux/repos/deb unstable main" > /etc/apt/sources.list.d/unityhub-beta.list' \ && apt-get -q update \ && apt-get -q install -y "unityhub=$hubVersion" \ && apt-get clean