diff options
author | saturneric <[email protected]> | 2024-02-01 05:20:05 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-02-01 07:18:02 +0000 |
commit | 3cd33c8c859e26c1b44be55a54ba60f52aa34f30 (patch) | |
tree | 39a7d748b4dc3070b0ae991a481250a2579cc552 | |
parent | fix: slove discovered issues on windows platform (diff) | |
download | GpgFrontend-3cd33c8c859e26c1b44be55a54ba60f52aa34f30.tar.gz GpgFrontend-3cd33c8c859e26c1b44be55a54ba60f52aa34f30.zip |
fix: gpgme 1.23.2 has problem on windows and back to 1.22
-rw-r--r-- | .github/workflows/release-qt5.yml | 35 | ||||
-rw-r--r-- | .github/workflows/release.yml | 59 |
2 files changed, 80 insertions, 14 deletions
diff --git a/.github/workflows/release-qt5.yml b/.github/workflows/release-qt5.yml index 2a9336a1..a3106dd5 100644 --- a/.github/workflows/release-qt5.yml +++ b/.github/workflows/release-qt5.yml @@ -54,10 +54,43 @@ jobs: run: | pacman --noconfirm -S --needed mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-cmake autoconf pacman --noconfirm -S --needed make texinfo automake - pacman --noconfirm -S --needed mingw-w64-x86_64-qt5 libintl msys2-runtime-devel gettext-devel mingw-w64-x86_64-gpgme + pacman --noconfirm -S --needed mingw-w64-x86_64-qt5 libintl msys2-runtime-devel gettext-devel pacman --noconfirm -S --needed mingw-w64-x86_64-ninja mingw-w64-x86_64-gnupg mingw-w64-x86_64-libarchive if: matrix.os == 'windows-2019' + - name: Build gpg-error (Windows) + shell: msys2 {0} + run: | + 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 + make install + cd ${{github.workspace}} + if: matrix.os == 'windows-2019' + + - name: Build assuan (Windows) + shell: msys2 {0} + run: | + 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 + make install + cd ${{github.workspace}} + if: matrix.os == 'windows-2019' + + - name: Build GpgME (Windows) + shell: msys2 {0} + run: | + 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 + make install + cd ${{github.workspace}} + if: matrix.os == 'windows-2019' + - name: Configure CMake & Build Binary(Windows) shell: msys2 {0} run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2f20de6c..7fbaa05c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -89,6 +89,22 @@ jobs: brew link openssl@3 --force if: matrix.os == 'macos-11' || matrix.os == 'macos-12' + - name: Set up MinGW (Windows) + uses: msys2/setup-msys2@v2 + with: + install: git msys2-devel base-devel binutils mingw-w64-x86_64-toolchain + release: false + if: matrix.os == 'windows-2019' + + - name: Set up Dependence (Windows) + shell: msys2 {0} + run: | + pacman --noconfirm -S --needed mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-cmake autoconf + pacman --noconfirm -S --needed make texinfo automake + pacman --noconfirm -S --needed mingw-w64-x86_64-qt6 libintl msys2-runtime-devel gettext-devel + pacman --noconfirm -S --needed mingw-w64-x86_64-ninja mingw-w64-x86_64-gnupg mingw-w64-x86_64-libarchive + if: matrix.os == 'windows-2019' + - name: Build gpg-error (Linux) run: | git clone --depth 1 --branch libgpg-error-1.47 git://git.gnupg.org/libgpg-error.git ${{github.workspace}}/third_party/libgpg-error @@ -99,6 +115,17 @@ jobs: cd ${{github.workspace}} if: matrix.os == 'ubuntu-20.04' + - name: Build gpg-error (Windows) + shell: msys2 {0} + run: | + 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 + make install + cd ${{github.workspace}} + if: matrix.os == 'windows-2019' + - name: Build assuan (Linux) run: | git clone --depth 1 --branch libassuan-2.5.6 git://git.gnupg.org/libassuan.git ${{github.workspace}}/third_party/libassuan @@ -109,30 +136,36 @@ jobs: cd ${{github.workspace}} if: matrix.os == 'ubuntu-20.04' + - name: Build assuan (Windows) + shell: msys2 {0} + run: | + 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 + make install + cd ${{github.workspace}} + if: matrix.os == 'windows-2019' + - name: Build GpgME (Linux) run: | 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 --disable-gpg-test && make -j2 sudo make install cd ${{github.workspace}} if: matrix.os == 'ubuntu-20.04' - - name: Set up MinGW (Windows) - uses: msys2/setup-msys2@v2 - with: - install: git msys2-devel base-devel binutils mingw-w64-x86_64-toolchain - release: false - if: matrix.os == 'windows-2019' - - - name: Set up Dependence (Windows) + - name: Build GpgME (Windows) shell: msys2 {0} run: | - pacman --noconfirm -S --needed mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-cmake autoconf - pacman --noconfirm -S --needed make texinfo automake - pacman --noconfirm -S --needed mingw-w64-x86_64-qt6 libintl msys2-runtime-devel gettext-devel mingw-w64-x86_64-gpgme - pacman --noconfirm -S --needed mingw-w64-x86_64-ninja mingw-w64-x86_64-gnupg mingw-w64-x86_64-libarchive + 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 + make install + cd ${{github.workspace}} if: matrix.os == 'windows-2019' - name: Build GpgFrontend (Linux) |