Fix: 1. typo 2. wrong usage of string(REPLACE) 3. Fix CI errors 4. Bump builtin xmake to 3.0.3 #154
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: | |
| pull_request: | |
| push: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [macOS-latest] | |
| kind: [static, shared] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Install CMake 3.22 | |
| # gflags 2.2.2 uses cmake 3.0, and the latest cmake doesn't support cmake that <= 3.5 | |
| # To pass the tests, install the specified cmake | |
| run: | | |
| set -e | |
| curl -sL https://cmake.org/files/v3.22/cmake-3.22.0-macos-universal.tar.gz | tar -xzv | |
| echo "$(pwd)/cmake-3.22.0-macos-universal/CMake.app/Contents/bin" >> $GITHUB_PATH | |
| cmake --version | |
| - name: Tests | |
| run: | | |
| ./scripts/test-unix.sh | |