|
3 | 3 | - push |
4 | 4 | - pull_request |
5 | 5 |
|
| 6 | +env: |
| 7 | + CLICOLOR_FORCE: 1 # Makes CMake output colours. |
| 8 | + CMAKE_COLOR_DIAGNOSTICS: ON # Makes CMake-generated build systems emit colour. |
| 9 | + |
6 | 10 | jobs: |
7 | 11 | unix: |
8 | 12 | strategy: |
|
31 | 35 | - name: Build & install using CMake |
32 | 36 | if: matrix.buildsys == 'cmake' |
33 | 37 | run: | |
34 | | - cmake -S . -B build --preset develop -DCMAKE_CXX_COMPILER=${{ matrix.cxx }} -DTESTS_OS_NAME=${{ matrix.os }} |
| 38 | + cmake -S . -B build --preset develop -DFETCHCONTENT_BASE_DIR=/tmp/cmake_deps -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_CXX_COMPILER=${{ matrix.cxx }} -DTESTS_OS_NAME=${{ matrix.os }} |
35 | 39 | cmake --build build -j --verbose |
36 | 40 | sudo cmake --install build --verbose |
37 | 41 | - name: Package binaries |
@@ -147,37 +151,37 @@ jobs: |
147 | 151 | uses: actions/checkout@v4 |
148 | 152 | - name: Install deps |
149 | 153 | run: .github/scripts/get_win_deps.ps1 |
150 | | - - name: Check libraries cache |
151 | | - id: cache |
152 | | - uses: actions/cache@v4 |
153 | | - with: |
154 | | - path: | |
155 | | - zbuild |
156 | | - pngbuild |
157 | | - key: ${{ matrix.os }}-${{ matrix.arch }}-${{ hashFiles('zlib/**', 'libpng/**') }} |
158 | | - - name: Build zlib |
159 | | - if: steps.cache.outputs.cache-hit != 'true' |
160 | | - shell: bash |
161 | | - run: | # BUILD_SHARED_LIBS causes the output DLL to be called `z.dll` as of zlib 1.3.2 (formerly `zlib1.dll`) |
162 | | - cmake -S zlib -B zbuild -A ${{ matrix.platform }} -Wno-dev -DCMAKE_INSTALL_PREFIX=install_dir -DBUILD_SHARED_LIBS=ON |
163 | | - cmake --build zbuild --config Debug -j |
164 | | - - name: Install zlib |
165 | | - run: | |
166 | | - cmake --install zbuild --config Debug |
167 | | - - name: Build libpng |
168 | | - if: steps.cache.outputs.cache-hit != 'true' |
169 | | - shell: bash |
170 | | - run: | |
171 | | - cmake -S libpng -B pngbuild -A ${{ matrix.platform }} -Wno-dev -DCMAKE_INSTALL_PREFIX=install_dir -DCMAKE_BUILD_TYPE=Debug -DPNG_SHARED=ON -DPNG_STATIC=OFF -DPNG_TESTS=OFF |
172 | | - cmake --build pngbuild --config Debug -j |
173 | | - - name: Install libpng |
174 | | - run: | |
175 | | - cmake --install pngbuild --config Debug |
| 154 | +# - name: Check libraries cache |
| 155 | +# id: cache |
| 156 | +# uses: actions/cache@v4 |
| 157 | +# with: |
| 158 | +# path: | |
| 159 | +# zbuild |
| 160 | +# pngbuild |
| 161 | +# key: ${{ matrix.os }}-${{ matrix.arch }}-${{ hashFiles('zlib/**', 'libpng/**') }} |
| 162 | +# - name: Build zlib |
| 163 | +# if: steps.cache.outputs.cache-hit != 'true' |
| 164 | +# shell: bash |
| 165 | +# run: | # BUILD_SHARED_LIBS causes the output DLL to be called `z.dll` as of zlib 1.3.2 (formerly `zlib1.dll`) |
| 166 | +# cmake -S zlib -B zbuild -A ${{ matrix.platform }} -Wno-dev -DCMAKE_INSTALL_PREFIX=install_dir -DBUILD_SHARED_LIBS=ON |
| 167 | +# cmake --build zbuild --config Debug -j |
| 168 | +# - name: Install zlib |
| 169 | +# run: | |
| 170 | +# cmake --install zbuild --config Debug |
| 171 | +# - name: Build libpng |
| 172 | +# if: steps.cache.outputs.cache-hit != 'true' |
| 173 | +# shell: bash |
| 174 | +# run: | |
| 175 | +# cmake -S libpng -B pngbuild -A ${{ matrix.platform }} -Wno-dev -DCMAKE_INSTALL_PREFIX=install_dir -DCMAKE_BUILD_TYPE=Debug -DPNG_SHARED=ON -DPNG_STATIC=OFF -DPNG_TESTS=OFF |
| 176 | +# cmake --build pngbuild --config Debug -j |
| 177 | +# - name: Install libpng |
| 178 | +# run: | |
| 179 | +# cmake --install pngbuild --config Debug |
176 | 180 | - name: Build Windows binaries |
177 | 181 | shell: bash |
178 | 182 | run: | # ASan seems to be broken on Windows. |
179 | | - cmake -S . -B build -A ${{ matrix.platform }} --preset develop -DCMAKE_INSTALL_PREFIX=install_dir -DSANITIZERS=OFF |
180 | | - cmake --build build --config Debug -j --verbose |
| 183 | + cmake -S . -B build -A ${{ matrix.platform }} --preset develop -DFETCHCONTENT_BASE_DIR="$TEMP/cmake-deps" -DBISON_EXECUTABLE=bison/win_bison.exe -DSANITIZERS=OFF |
| 184 | + cmake --build build --config Debug -j 1 |
181 | 185 | cmake --install build --verbose |
182 | 186 | - name: Package binaries |
183 | 187 | shell: bash |
|
0 commit comments