From 6611341350996a11086e38dc214d25382258e1ff Mon Sep 17 00:00:00 2001 From: microcai Date: Sun, 13 Oct 2024 10:11:03 +0800 Subject: [PATCH] reduce clone size by depth=1 --- .github/workflows/msvc-qt.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/msvc-qt.yml b/.github/workflows/msvc-qt.yml index 56ddd2d..9f64f77 100644 --- a/.github/workflows/msvc-qt.yml +++ b/.github/workflows/msvc-qt.yml @@ -23,7 +23,6 @@ jobs: msvc: msvc2019 steps: - - uses: actions/checkout@v4.2.1 - uses: actions/setup-python@v5.2.0 - run: python --version - name: Setup the compiler target win64 @@ -53,9 +52,9 @@ jobs: if: steps.cache-qt-repo.outputs.cache-hit != 'true' run: | # Clone Qt6 repo - git clone https://code.qt.io/qt/qt5.git -b v6.8.0 qt-source + git clone https://github.com/qt/qt5.git -b v6.8.0 --depth 1 qt-source cd qt-source - perl init-repository.pl + perl init-repository.pl --mirror https://github.com/qt/ - name: create build directory working-directory: ${{ runner.workspace }} @@ -78,7 +77,7 @@ jobs: -no-feature-qdbus -no-feature-qtdiag -no-feature-qtplugininfo - -skip qtopcua,qtgrpc,qt3d,qtmqtt,qtcoap,qtqa + -skip qtopcua,qtgrpc,qt3d,qtmqtt,qtcoap,qtqa,qtdbus,qtremoteobjects -- -DFEATURE_cxx20=${{ matrix.FEATURE_cxx20 }} - name: build qt