added link to old version of docs, also turned off brew update in macos CI workflow #2342
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
Windows: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
ccompiler: [gcc, clang] | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- name: install-dependencies | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: MINGW64 | |
update: true | |
install: >- | |
mingw-w64-x86_64-gcc | |
mingw-w64-x86_64-clang | |
mingw-w64-x86_64-cmake | |
mingw-w64-x86_64-ninja | |
mingw-w64-x86_64-libaec | |
mingw-w64-x86_64-libpng | |
mingw-w64-x86_64-openjpeg2 | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
path: g2c | |
- name: build | |
run: | | |
if [[ ${{ matrix.ccompiler }} == "clang" ]]; then | |
export CC=clang | |
elif [[ ${{ matrix.ccompiler }} == "gcc" ]]; then | |
export CC=gcc | |
fi | |
cd g2c | |
mkdir build | |
cd build | |
# Windows CI fails when building with shared libs, turn off | |
cmake -DUSE_OpenJPEG=ON -DUSE_Jasper=OFF -DBUILD_SHARED_LIBS=OFF -DLOGGING=ON -DUSE_AEC=ON .. | |
cmake --build . | |
- name: test | |
run: | | |
cd g2c/build | |
ctest --output-on-failure --extra-verbose --output-log log.txt | |
- name: upload-log | |
uses: actions/upload-artifact@v3 | |
with: | |
name: g2c-log | |
path: | | |
g2c/build/log.txt | |