Better check in Storage::IsNodeDownloaded. #193
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 Check | |
on: | |
workflow_dispatch: # Manual trigger | |
push: | |
branches: | |
- master | |
pull_request: | |
paths-ignore: | |
- .gitignore | |
- .github/** | |
- '!.github/workflows/macos-check.yaml' # Run check on self change | |
- CONTRIBUTORS | |
- LICENSE | |
- NOTICE | |
- README.md | |
- android/** | |
- iphone/** | |
- data/strings/** | |
- docs/** | |
- packaging/** | |
- platform/*_android* | |
- platform/*_ios* | |
- platform/*_linux* | |
- platform/*_win* | |
- pyhelpers/** | |
- tools/** | |
- '!tools/python/test_server/**' | |
- xcode/** | |
jobs: | |
macos-matrix: | |
name: macOS builds and tests | |
runs-on: macos-15 | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_16.app/Contents/Developer | |
HOMEBREW_NO_ANALYTICS: 1 | |
HOMEBREW_NO_INSTALL_CLEANUP: 1 | |
strategy: | |
fail-fast: false | |
matrix: | |
CMAKE_BUILD_TYPE: [Debug, RelWithDebInfo] | |
# Cancels previous jobs if the same branch or PR was updated again. | |
concurrency: | |
group: ${{ github.workflow }}-${{ matrix.CMAKE_BUILD_TYPE }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Parallel submodules checkout | |
shell: bash | |
run: git submodule update --depth 1 --init --recursive --jobs=$(($(sysctl -n hw.logicalcpu) * 20)) | |
- name: Install build tools and dependencies | |
shell: bash | |
run: | | |
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install ninja qt@6 | |
- name: Configure | |
shell: bash | |
run: ./configure.sh | |
- name: Configure ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
key: ${{ github.workflow }}-${{ matrix.CMAKE_BUILD_TYPE }} | |
- name: CMake | |
shell: bash | |
env: | |
CMAKE_C_COMPILER_LAUNCHER: ccache | |
CMAKE_CXX_COMPILER_LAUNCHER: ccache | |
run: | | |
echo "Building ${{ matrix.CMAKE_BUILD_TYPE }}" | |
cmake . -B build -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.CMAKE_BUILD_TYPE }} \ | |
-DCMAKE_C_FLAGS=-g1 -DCMAKE_CXX_FLAGS=-g1 | |
- name: Compile | |
shell: bash | |
working-directory: build | |
run: ninja | |
- name: Tests | |
shell: bash | |
working-directory: build | |
env: | |
# drape_tests - requires X Window | |
# generator_integration_tests - https://github.com/organicmaps/organicmaps/issues/225 | |
# opening_hours_integration_tests - https://github.com/organicmaps/organicmaps/issues/219 | |
# opening_hours_supported_features_tests - https://github.com/organicmaps/organicmaps/issues/219 | |
# routing_integration_tests - https://github.com/organicmaps/organicmaps/issues/221 | |
# shaders_tests - https://github.com/organicmaps/organicmaps/issues/223 | |
# world_feed_integration_tests - https://github.com/organicmaps/organicmaps/issues/215 | |
CTEST_EXCLUDE_REGEX: "drape_tests|generator_integration_tests|opening_hours_integration_tests|opening_hours_supported_features_tests|routing_benchmarks|routing_integration_tests|routing_quality_tests|search_quality_tests|storage_integration_tests|shaders_tests|world_feed_integration_tests" | |
run: | | |
ctest -L "omim-test" -E "$CTEST_EXCLUDE_REGEX" --output-on-failure |