Merge pull request #14481 from rouault/curl_8_20_win32_compat #27787
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 build | |
| on: | |
| push: | |
| paths-ignore: | |
| - 'doc/**' | |
| - 'docker/**' | |
| branches-ignore: | |
| - 'backport**' | |
| - 'dependabot**' | |
| pull_request: | |
| paths-ignore: | |
| - 'doc/**' | |
| - 'docker/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read # to fetch code (actions/checkout) | |
| jobs: | |
| macos_build: | |
| # Arm64 | |
| runs-on: macos-14 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Setup ccache cache | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 | |
| with: | |
| path: ~/.ccache | |
| key: ${{ runner.os }}-ccache-${{ github.ref_name }}-${{ github.sha }} | |
| restore-keys: | | |
| ${{ runner.os }}-ccache-${{ github.ref_name }}- | |
| ${{ runner.os }}-ccache- | |
| - name: Cache Conda packages | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 | |
| with: | |
| path: ~/conda_pkgs_dir | |
| key: ${{ runner.os }}-conda-${{ hashFiles('ci/travis/osx/before_install.sh') }} | |
| restore-keys: | | |
| ${{ runner.os }}-conda- | |
| - uses: conda-incubator/setup-miniconda@8ee1f361103df19b6f8c8655fd3967a8ecb162d5 # v4.0.1 | |
| with: | |
| channels: conda-forge | |
| auto-update-conda: true | |
| use-mamba: true | |
| - name: Install Requirements | |
| shell: bash -l {0} | |
| run: | | |
| source ./ci/travis/osx/before_install.sh | |
| - name: Configure ccache | |
| shell: bash -l {0} | |
| run: | | |
| echo "CCACHE_DIR=$HOME/.ccache" >> $GITHUB_ENV | |
| echo "CCACHE_MAXSIZE=1G" >> $GITHUB_ENV | |
| ccache -z | |
| - name: Build | |
| shell: bash -l {0} | |
| run: | | |
| source ./ci/travis/osx/install.sh | |
| - name: Show ccache stats | |
| shell: bash -l {0} | |
| run: ccache -sv | |
| - name: Run tests | |
| shell: bash -l {0} | |
| run: | | |
| source ./ci/travis/osx/script.sh | |
| env: | |
| # Emulate a few Travis-CI env variable so that some tests get properly skipped | |
| TRAVIS: true | |
| TRAVIS_OS_NAME: osx | |
| BUILD_NAME: macos_build_conda |