@@ -89,50 +89,83 @@ jobs:
8989 brew link openssl@3 --force
9090 if : matrix.os == 'macos-11' || matrix.os == 'macos-12'
9191
92+ - name : Set up MinGW (Windows)
93+ uses : msys2/setup-msys2@v2
94+ with :
95+ install : git msys2-devel base-devel binutils mingw-w64-x86_64-toolchain
96+ release : false
97+ if : matrix.os == 'windows-2019'
98+
99+ - name : Set up Dependence (Windows)
100+ shell : msys2 {0}
101+ run : |
102+ pacman --noconfirm -S --needed mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-cmake autoconf
103+ pacman --noconfirm -S --needed make texinfo automake
104+ pacman --noconfirm -S --needed mingw-w64-x86_64-qt6 libintl msys2-runtime-devel gettext-devel
105+ pacman --noconfirm -S --needed mingw-w64-x86_64-ninja mingw-w64-x86_64-gnupg mingw-w64-x86_64-libarchive
106+ if : matrix.os == 'windows-2019'
107+
92108 - name : Build gpg-error (Linux)
93109 run : |
94110 git clone --depth 1 --branch libgpg-error-1.47 git://git.gnupg.org/libgpg-error.git ${{github.workspace}}/third_party/libgpg-error
95111 cd ${{github.workspace}}/third_party/libgpg-error
96112 ./autogen.sh
97- ./configure --enable-maintainer-mode && make -j2
113+ ./configure --enable-maintainer-mode && make -j4
98114 sudo make install
99115 cd ${{github.workspace}}
100116 if : matrix.os == 'ubuntu-20.04'
101117
118+ - name : Build gpg-error (Windows)
119+ shell : msys2 {0}
120+ run : |
121+ git clone --depth 1 --branch libgpg-error-1.47 git://git.gnupg.org/libgpg-error.git ${{github.workspace}}/third_party/libgpg-error
122+ cd ${{github.workspace}}/third_party/libgpg-error
123+ ./autogen.sh
124+ ./configure --enable-maintainer-mode && make -j4
125+ make install
126+ cd ${{github.workspace}}
127+ if : matrix.os == 'windows-2019'
128+
102129 - name : Build assuan (Linux)
103130 run : |
104131 git clone --depth 1 --branch libassuan-2.5.6 git://git.gnupg.org/libassuan.git ${{github.workspace}}/third_party/libassuan
105132 cd ${{github.workspace}}/third_party/libassuan
106133 ./autogen.sh
107- ./configure --enable-maintainer-mode && make -j2
134+ ./configure --enable-maintainer-mode && make -j4
108135 sudo make install
109136 cd ${{github.workspace}}
110137 if : matrix.os == 'ubuntu-20.04'
111138
139+ - name : Build assuan (Windows)
140+ shell : msys2 {0}
141+ run : |
142+ git clone --depth 1 --branch libassuan-2.5.6 git://git.gnupg.org/libassuan.git ${{github.workspace}}/third_party/libassuan
143+ cd ${{github.workspace}}/third_party/libassuan
144+ ./autogen.sh
145+ ./configure --enable-maintainer-mode && make -j4
146+ make install
147+ cd ${{github.workspace}}
148+ if : matrix.os == 'windows-2019'
149+
112150 - name : Build GpgME (Linux)
113151 run : |
114152 git clone --depth 1 --branch gpgme-1.22.0 git://git.gnupg.org/gpgme.git ${{github.workspace}}/third_party/gpgme
115153 cd ${{github.workspace}}/third_party/gpgme
116154 ./autogen.sh
117- ./configure --enable-maintainer-mode --enable-languages=cpp && make -j2
155+ ./configure --enable-maintainer-mode --enable-languages=cpp && make -j4
118156 sudo make install
119157 cd ${{github.workspace}}
120158 if : matrix.os == 'ubuntu-20.04'
121159
122- - name : Set up MinGW (Windows)
123- uses : msys2/setup-msys2@v2
124- with :
125- install : git msys2-devel base-devel binutils mingw-w64-x86_64-toolchain
126- release : false
127- if : matrix.os == 'windows-2019'
128-
129- - name : Set up Dependence (Windows)
160+ - name : Build GpgME (Windows)
130161 shell : msys2 {0}
131162 run : |
132- pacman --noconfirm -S --needed mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-cmake autoconf
133- pacman --noconfirm -S --needed make texinfo automake
134- pacman --noconfirm -S --needed mingw-w64-x86_64-qt6 libintl msys2-runtime-devel gettext-devel mingw-w64-x86_64-gpgme
135- pacman --noconfirm -S --needed mingw-w64-x86_64-ninja mingw-w64-x86_64-gnupg mingw-w64-x86_64-libarchive
163+ git clone --depth 1 --branch gpgme-1.18.0 git://git.gnupg.org/gpgme.git ${{github.workspace}}/third_party/gpgme
164+ cd ${{github.workspace}}/third_party/gpgme
165+ ./autogen.sh
166+ ./configure --enable-maintainer-mode --enable-languages=cpp --disable-gpg-test && make -j4
167+ make install
168+ cd ${{github.workspace}}
136169 if : matrix.os == 'windows-2019'
137170
138171 - name : Build GpgFrontend (Linux)
@@ -202,7 +235,7 @@ jobs:
202235 mkdir build && cd build
203236 cmake -G Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DGPGFRONTEND_BUILD_TYPE_STABLE=ON ..
204237 # Build your program with the given configuration
205- cmake --build . --config ${{env.BUILD_TYPE}} -- -j 2
238+ cmake --build . --config ${{env.BUILD_TYPE}} -- -j 4
206239 if : matrix.os == 'windows-2019'
207240
208241 - name : Upload Artifact(Linux)
0 commit comments