# Part of the Carbon Language project, under the Apache License v2.0 with LLVM # Exceptions. See /LICENSE for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception name: Setup build environment (macOS) inputs: matrix_runner: required: true remote_cache_upload: required: true runs: using: composite steps: # Setup Python and related tools. - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: # Match the min version listed in docs/project/contribution_tools.md # or the oldest version available on the OS. python-version: ${{ inputs.matrix_runner == 'macos-14' && '3.11' || '3.10' }} - uses: ./.github/actions/build-setup-macos if: startsWith(inputs.matrix_runner, 'macos') with: matrix_runner: ${{ inputs.matrix_runner }} - uses: ./.github/actions/build-setup-ubuntu if: startsWith(inputs.matrix_runner, 'ubuntu') # Print the various tool paths and versions to help in debugging. - name: Print tool debugging info shell: bash run: | echo '*** PATH' echo $PATH echo '*** bazelisk' which bazelisk bazelisk --version echo '*** run_bazel.py' ./scripts/run_bazel.py --version echo '*** python' which python python --version echo '*** clang' which clang clang --version echo '*** clang++' which clang++ clang++ --version echo '*** clang-tidy' which clang-tidy clang-tidy --version # Add our bazel configuration and print basic info to ease debugging. - name: Configure Bazel and print info env: # Add a cache version for changes that bazel won't otherwise detect, # like llvm version changes. CACHE_VERSION: 1 shell: bash run: | cat >user.bazelrc <