Add support for CYGWIN (#18) #23
This file contains hidden or 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: macos | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - 'CMakeLists.txt' | |
| - 'dap/**' | |
| - 'dbgcli/**' | |
| - 'tests/**' | |
| - '.github/workflows/macos.yml' | |
| pull_request: | |
| paths: | |
| - 'CMakeLists.txt' | |
| - 'dap/**' | |
| - 'dbgcli/**' | |
| - 'tests/**' | |
| - '.github/workflows/macos.yml' | |
| jobs: | |
| macos: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Install wxDap's dependencies | |
| run: | | |
| brew install git || true | |
| brew install cmake || true | |
| brew install libssh || true | |
| brew install hunspell || true | |
| # WxWidgets | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: wxWidgets/wxWidgets | |
| ref: v3.2.8 | |
| submodules: recursive | |
| path: wxWidgets | |
| - name: Build and install wxWidgets | |
| run: | | |
| mkdir wxWidgets/build-release | |
| cd wxWidgets/build-release | |
| ../configure --enable-shared --enable-monolithic --with-osx_cocoa CXX='clang++ -std=c++17 -stdlib=libc++ -I../src/tiff/libtiff' CC=clang --disable-debug --disable-mediactrl --enable-stl | |
| make -j$(sysctl -n hw.physicalcpu) | |
| sudo make install | |
| # wxdap | |
| - name: Checkout wxdap | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Build wxdap | |
| run: | | |
| mkdir build-release | |
| cd build-release | |
| cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=1 | |
| cmake --build . -j $(sysctl -n hw.physicalcpu) | |
| - name: test | |
| run: | | |
| cd build-release | |
| ctest --output-on-failure |