From bcfa2512902d336aabce4cad179018634c88f61c Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 6 Nov 2023 14:10:51 +0800 Subject: [PATCH] GHA CI: speed up boost installation Here is some benchmark for various archive formats: ``` gz 0m11.384s 0m11.495s 0m11.193s zip 0m14.159s 0m14.416s 0m13.917s 7z 0m17.569s 0m17.295s 0m18.496s bz2 0m31.519s 0m28.885s 0m29.510s ``` Looking by compressed size, bz2 is the best. However its decompressing speed is the slowest. bz2 and gz file size only differs by ~20MB and this difference is neglectable given the network speed on Github. So switch to gz format to speed up CI build time. PR #19867. --- .github/workflows/ci_macos.yaml | 6 +++--- .github/workflows/ci_ubuntu.yaml | 6 +++--- .github/workflows/ci_windows.yaml | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci_macos.yaml b/.github/workflows/ci_macos.yaml index ac5437047..92de87827 100644 --- a/.github/workflows/ci_macos.yaml +++ b/.github/workflows/ci_macos.yaml @@ -52,9 +52,9 @@ jobs: run: | curl \ -L \ - -o "${{ runner.temp }}/boost.tar.bz2" \ - "https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.bz2" - tar -xf "${{ runner.temp }}/boost.tar.bz2" -C "${{ github.workspace }}/.." + -o "${{ runner.temp }}/boost.tar.gz" \ + "https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.gz" + tar -xf "${{ runner.temp }}/boost.tar.gz" -C "${{ github.workspace }}/.." mv "${{ github.workspace }}/.."/boost_* "${{ env.boost_path }}" - name: Install Qt diff --git a/.github/workflows/ci_ubuntu.yaml b/.github/workflows/ci_ubuntu.yaml index 4fda7a2e3..64f9bac58 100644 --- a/.github/workflows/ci_ubuntu.yaml +++ b/.github/workflows/ci_ubuntu.yaml @@ -48,9 +48,9 @@ jobs: run: | curl \ -L \ - -o "${{ runner.temp }}/boost.tar.bz2" \ - "https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2" - tar -xf "${{ runner.temp }}/boost.tar.bz2" -C "${{ github.workspace }}/.." + -o "${{ runner.temp }}/boost.tar.gz" \ + "https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz" + tar -xf "${{ runner.temp }}/boost.tar.gz" -C "${{ github.workspace }}/.." mv "${{ github.workspace }}/.."/boost_* "${{ env.boost_path }}" - name: Install Qt diff --git a/.github/workflows/ci_windows.yaml b/.github/workflows/ci_windows.yaml index ea64e42c5..0f61d2715 100644 --- a/.github/workflows/ci_windows.yaml +++ b/.github/workflows/ci_windows.yaml @@ -56,11 +56,11 @@ jobs: - name: Install boost run: | - aria2c ` - "https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.7z" ` - -d "${{ runner.temp }}" ` - -o "boost.7z" - 7z x "${{ runner.temp }}/boost.7z" -o"${{ github.workspace }}/.." + curl ` + -L ` + -o "${{ runner.temp }}/boost.tar.gz" ` + "https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.gz" + tar -xf "${{ runner.temp }}/boost.tar.gz" -C "${{ github.workspace }}/.." move "${{ github.workspace }}/../boost_*" "${{ env.boost_path }}" - name: Install Qt