-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix CI: use Python 3.11 on macos builds
------------------------ Note: by creating a PR or an issue you automatically agree to the CLA. See [CONTRIBUTING.md](https://github.com/userver-framework/userver/blob/develop/CONTRIBUTING.md). Feel free to remove this note, the agreement holds. Tests: протестировано CI Pull Request resolved: #765 commit_hash:03bf9e22e4070e2e0f592dc388baf1a05ac60f2c
- Loading branch information
Showing
3 changed files
with
10 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
- os: ubuntu-22.04 | ||
conanflags: '' | ||
- os: macos-latest | ||
conanflags: '' | ||
conanflags: '-o python_path=python3.11' | ||
|
||
steps: | ||
- name: Checkout | ||
|
@@ -38,8 +38,10 @@ jobs: | |
- name: Install MacOS packages | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
brew update | ||
brew install postgresql | ||
brew install libiconv # https://stackoverflow.com/questions/57734434/libiconv-or-iconv-undefined-symbol-on-mac-osx | ||
brew install [email protected] | ||
- name: Install common packages | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,17 +8,13 @@ name: CI | |
- develop | ||
- feature/** | ||
|
||
env: | ||
UBSAN_OPTIONS: print_stacktrace=1 | ||
ASAN_OPTIONS: detect_odr_violation=2 | ||
|
||
jobs: | ||
macos: | ||
name: MacOS (build only) | ||
runs-on: macos-latest | ||
env: | ||
CMAKE_FLAGS: >- | ||
-DUSERVER_SANITIZE="ub addr" | ||
-GNinja | ||
-DCMAKE_BUILD_TYPE=Debug | ||
-DUSERVER_NO_WERROR=OFF | ||
-DUSERVER_FEATURE_REDIS_HI_MALLOC=1 | ||
|
@@ -41,20 +37,17 @@ jobs: | |
- name: Install brew packages | ||
run: | | ||
export SDKROOT="`xcrun --show-sdk-path`" | ||
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer | ||
brew update | ||
brew install $(cat scripts/docs/en/deps/macos.md) | ||
brew install clang-format | ||
brew install [email protected] | ||
brew link postgresql@16 | ||
brew upgrade | ||
- name: Run cmake | ||
run: | | ||
mkdir build_debug | ||
cd build_debug | ||
cmake $CMAKE_FLAGS .. | ||
cmake -S./ -B./build_debug -DUSERVER_PYTHON_PATH=$(brew --prefix)/bin/python3.11 $CMAKE_FLAGS | ||
- name: Compile | ||
run: | | ||
cd build_debug | ||
make -j$(nproc) -k | ||
cmake --build build_debug -j$(nproc) -- -k 1 |
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