|
45 | 45 | run: | |
46 | 46 | source PawPaw/local.env macos-universal |
47 | 47 | cmake -S . -B build |
48 | | - $(which cmake) --build build -j $(sysctl -n hw.logicalcpu) |
| 48 | + cmake --build build -j $(sysctl -n hw.logicalcpu) |
49 | 49 | - uses: actions/upload-artifact@v3 |
50 | 50 | with: |
51 | 51 | name: macOS dmg |
@@ -106,10 +106,13 @@ jobs: |
106 | 106 | shell: bash |
107 | 107 | run: | |
108 | 108 | source PawPaw/local.env win32 |
109 | | - alias |
110 | | - # cmake -S . -B build |
111 | | - cmake -DCMAKE_CROSSCOMPILING=ON -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_SYSTEM_PROCESSOR=i686 -DCMAKE_AR=/usr/bin/i686-w64-mingw32-ar -DCMAKE_C_COMPILER_AR=/usr/bin/i686-w64-mingw32-ar -DCMAKE_CXX_COMPILER_AR=/usr/bin/i686-w64-mingw32-ar -DCMAKE_RANLIB=/usr/bin/i686-w64-mingw32-ranlib -DCMAKE_C_COMPILER_RANLIB=/usr/bin/i686-w64-mingw32-ranlib -DCMAKE_CXX_COMPILER_RANLIB=/usr/bin/i686-w64-mingw32-ranlib -DCMAKE_CROSSCOMPILING_EMULATOR=wine -DCMAKE_RC_COMPILER=i686-w64-mingw32-windres -S . -B build |
112 | | - $(which cmake) --build build -j $(nproc) |
| 109 | + cmake -DCMAKE_CROSSCOMPILING=ON -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_SYSTEM_PROCESSOR=i686 \ |
| 110 | + -DCMAKE_AR=/usr/bin/i686-w64-mingw32-ar -DCMAKE_C_COMPILER_AR=/usr/bin/i686-w64-mingw32-ar -DCMAKE_CXX_COMPILER_AR=/usr/bin/i686-w64-mingw32-ar \ |
| 111 | + -DCMAKE_RANLIB=/usr/bin/i686-w64-mingw32-ranlib -DCMAKE_C_COMPILER_RANLIB=/usr/bin/i686-w64-mingw32-ranlib -DCMAKE_CXX_COMPILER_RANLIB=/usr/bin/i686-w64-mingw32-ranlib \ |
| 112 | + -DCMAKE_CROSSCOMPILING_EMULATOR=wine \ |
| 113 | + -DCMAKE_RC_COMPILER=i686-w64-mingw32-windres \ |
| 114 | + -S . -B build |
| 115 | + cmake --build build -j $(nproc) |
113 | 116 | - name: Create zip package |
114 | 117 | if: steps.cache.outputs.cache-hit == 'true' |
115 | 118 | shell: bash |
@@ -179,9 +182,13 @@ jobs: |
179 | 182 | shell: bash |
180 | 183 | run: | |
181 | 184 | source PawPaw/local.env win64 |
182 | | - alias |
183 | | - cmake -S . -B build |
184 | | - $(which cmake) --build build -j $(nproc) |
| 185 | + cmake -DCMAKE_CROSSCOMPILING=ON -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_SYSTEM_PROCESSOR=x86_64 \ |
| 186 | + -DCMAKE_AR=/usr/bin/x86_64-w64-mingw32-ar -DCMAKE_C_COMPILER_AR=/usr/bin/x86_64-w64-mingw32-ar -DCMAKE_CXX_COMPILER_AR=/usr/bin/x86_64-w64-mingw32-ar \ |
| 187 | + -DCMAKE_RANLIB=/usr/bin/x86_64-w64-mingw32-ranlib -DCMAKE_C_COMPILER_RANLIB=/usr/bin/x86_64-w64-mingw32-ranlib -DCMAKE_CXX_COMPILER_RANLIB=/usr/bin/x86_64-w64-mingw32-ranlib \ |
| 188 | + -DCMAKE_CROSSCOMPILING_EMULATOR=wine \ |
| 189 | + -DCMAKE_RC_COMPILER=x86_64-w64-mingw32-windres \ |
| 190 | + -S . -B build |
| 191 | + cmake --build build -j $(nproc) |
185 | 192 | - name: Create zip package |
186 | 193 | if: steps.cache.outputs.cache-hit == 'true' |
187 | 194 | shell: bash |
|
0 commit comments