fix ci windows: std::min/max conflict with macro defination #55
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: macOS | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "uvio/**" | |
- "tests/**" | |
- ".github/workflows/macos.yaml" | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "uvio/**" | |
jobs: | |
build_macos: | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
name: "Apple clang (C++20, release)" | |
env: | |
HOMEBREW_NO_AUTO_UPDATE: 1 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
- name: Brew install | |
run: | | |
# brew install curl git pkg-config llvm | |
brew install curl git pkg-config | |
brew install libuv | |
- name: Setup Python | |
uses: actions/setup-python@main | |
with: | |
python-version: '3.12' | |
- name: Install Meson/Ninja | |
run: | | |
python3 -m pip install meson ninja | |
- name: Build | |
run: | | |
meson setup build -Dbuildtype=release | |
meson compile -C build | |
./build/tests/gtests/all_gtests | |
- name: Install | |
run: | | |
sudo meson install -C build |