From 23b3059774804a4fe5756f7c16ba87155d4c096f Mon Sep 17 00:00:00 2001 From: saturneric Date: Thu, 1 Feb 2024 15:24:26 +0800 Subject: [PATCH] chore: speed up ci --- .github/workflows/codeql-analysis.yml | 6 +++--- .github/workflows/release-qt5.yml | 8 ++++---- .github/workflows/release.yml | 14 +++++++------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index d0e9c778..ad6e41db 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -72,7 +72,7 @@ jobs: git clone --depth 1 --branch libgpg-error-1.47 git://git.gnupg.org/libgpg-error.git ${{github.workspace}}/third_party/libgpg-error cd ${{github.workspace}}/third_party/libgpg-error ./autogen.sh - ./configure --enable-maintainer-mode && make -j2 + ./configure --enable-maintainer-mode && make -j4 sudo make install cd ${{github.workspace}} @@ -81,7 +81,7 @@ jobs: git clone --depth 1 --branch libassuan-2.5.6 git://git.gnupg.org/libassuan.git ${{github.workspace}}/third_party/libassuan cd ${{github.workspace}}/third_party/libassuan ./autogen.sh - ./configure --enable-maintainer-mode && make -j2 + ./configure --enable-maintainer-mode && make -j4 sudo make install cd ${{github.workspace}} @@ -90,7 +90,7 @@ jobs: git clone --depth 1 --branch gpgme-1.22.0 git://git.gnupg.org/gpgme.git ${{github.workspace}}/third_party/gpgme cd ${{github.workspace}}/third_party/gpgme ./autogen.sh - ./configure --enable-maintainer-mode --enable-languages=cpp && make -j2 + ./configure --enable-maintainer-mode --enable-languages=cpp && make -j4 sudo make install cd ${{github.workspace}} diff --git a/.github/workflows/release-qt5.yml b/.github/workflows/release-qt5.yml index a3106dd5..a3cc7f12 100644 --- a/.github/workflows/release-qt5.yml +++ b/.github/workflows/release-qt5.yml @@ -64,7 +64,7 @@ jobs: git clone --depth 1 --branch libgpg-error-1.47 git://git.gnupg.org/libgpg-error.git ${{github.workspace}}/third_party/libgpg-error cd ${{github.workspace}}/third_party/libgpg-error ./autogen.sh - ./configure --enable-maintainer-mode && make -j2 + ./configure --enable-maintainer-mode && make -j4 make install cd ${{github.workspace}} if: matrix.os == 'windows-2019' @@ -75,7 +75,7 @@ jobs: git clone --depth 1 --branch libassuan-2.5.6 git://git.gnupg.org/libassuan.git ${{github.workspace}}/third_party/libassuan cd ${{github.workspace}}/third_party/libassuan ./autogen.sh - ./configure --enable-maintainer-mode && make -j2 + ./configure --enable-maintainer-mode && make -j4 make install cd ${{github.workspace}} if: matrix.os == 'windows-2019' @@ -86,7 +86,7 @@ jobs: git clone --depth 1 --branch gpgme-1.22.0 git://git.gnupg.org/gpgme.git ${{github.workspace}}/third_party/gpgme cd ${{github.workspace}}/third_party/gpgme ./autogen.sh - ./configure --enable-maintainer-mode --enable-languages=cpp --disable-gpg-test && make -j2 + ./configure --enable-maintainer-mode --enable-languages=cpp --disable-gpg-test && make -j4 make install cd ${{github.workspace}} if: matrix.os == 'windows-2019' @@ -98,7 +98,7 @@ jobs: mkdir build && cd build cmake -G Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DGPGFRONTEND_BUILD_TYPE_STABLE=ON -DGPGFRONTEND_QT5_BUILD=ON .. # Build your program with the given configuration - cmake --build . --config ${{env.BUILD_TYPE}} -- -j 2 + cmake --build . --config ${{env.BUILD_TYPE}} -- -j 4 if: matrix.os == 'windows-2019' - name: Upload Artifact(Windows) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7fbaa05c..c7cb5085 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -110,7 +110,7 @@ jobs: git clone --depth 1 --branch libgpg-error-1.47 git://git.gnupg.org/libgpg-error.git ${{github.workspace}}/third_party/libgpg-error cd ${{github.workspace}}/third_party/libgpg-error ./autogen.sh - ./configure --enable-maintainer-mode && make -j2 + ./configure --enable-maintainer-mode && make -j4 sudo make install cd ${{github.workspace}} if: matrix.os == 'ubuntu-20.04' @@ -121,7 +121,7 @@ jobs: git clone --depth 1 --branch libgpg-error-1.47 git://git.gnupg.org/libgpg-error.git ${{github.workspace}}/third_party/libgpg-error cd ${{github.workspace}}/third_party/libgpg-error ./autogen.sh - ./configure --enable-maintainer-mode && make -j2 + ./configure --enable-maintainer-mode && make -j4 make install cd ${{github.workspace}} if: matrix.os == 'windows-2019' @@ -131,7 +131,7 @@ jobs: git clone --depth 1 --branch libassuan-2.5.6 git://git.gnupg.org/libassuan.git ${{github.workspace}}/third_party/libassuan cd ${{github.workspace}}/third_party/libassuan ./autogen.sh - ./configure --enable-maintainer-mode && make -j2 + ./configure --enable-maintainer-mode && make -j4 sudo make install cd ${{github.workspace}} if: matrix.os == 'ubuntu-20.04' @@ -142,7 +142,7 @@ jobs: git clone --depth 1 --branch libassuan-2.5.6 git://git.gnupg.org/libassuan.git ${{github.workspace}}/third_party/libassuan cd ${{github.workspace}}/third_party/libassuan ./autogen.sh - ./configure --enable-maintainer-mode && make -j2 + ./configure --enable-maintainer-mode && make -j4 make install cd ${{github.workspace}} if: matrix.os == 'windows-2019' @@ -152,7 +152,7 @@ jobs: git clone --depth 1 --branch gpgme-1.22.0 git://git.gnupg.org/gpgme.git ${{github.workspace}}/third_party/gpgme cd ${{github.workspace}}/third_party/gpgme ./autogen.sh - ./configure --enable-maintainer-mode --enable-languages=cpp --disable-gpg-test && make -j2 + ./configure --enable-maintainer-mode --enable-languages=cpp --disable-gpg-test && make -j4 sudo make install cd ${{github.workspace}} if: matrix.os == 'ubuntu-20.04' @@ -163,7 +163,7 @@ jobs: git clone --depth 1 --branch gpgme-1.22.0 git://git.gnupg.org/gpgme.git ${{github.workspace}}/third_party/gpgme cd ${{github.workspace}}/third_party/gpgme ./autogen.sh - ./configure --enable-maintainer-mode --enable-languages=cpp && make -j2 + ./configure --enable-maintainer-mode --enable-languages=cpp && make -j4 make install cd ${{github.workspace}} if: matrix.os == 'windows-2019' @@ -235,7 +235,7 @@ jobs: mkdir build && cd build cmake -G Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DGPGFRONTEND_BUILD_TYPE_STABLE=ON .. # Build your program with the given configuration - cmake --build . --config ${{env.BUILD_TYPE}} -- -j 2 + cmake --build . --config ${{env.BUILD_TYPE}} -- -j 4 if: matrix.os == 'windows-2019' - name: Upload Artifact(Linux)