fix: fetch_keystore #5
Workflow file for this run
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: Windows-Builds | |
| # on: | |
| # workflow_call: | |
| # inputs: | |
| # checkout-ref: | |
| # required: true | |
| # description: "The ref we want to compile" | |
| # type: string | |
| # bazel-cache-mode: | |
| # required: true | |
| # description: "READ_WRITE or READ_ONLY" | |
| # type: string | |
| # execute-integration-tests: | |
| # required: true | |
| # description: "Integration tests require credentials." | |
| # type: boolean | |
| permissions: | |
| contents: read | |
| jobs: | |
| bazel: | |
| name: bazel + ${{ matrix.msvc }} + ${{ matrix.compilation_mode }} + ${{ matrix.shard }} | |
| runs-on: windows-2022 | |
| permissions: | |
| contents: 'read' | |
| strategy: | |
| # Continue other builds even if one fails | |
| fail-fast: false | |
| matrix: | |
| exclude-from-full-trick: [ true ] | |
| msvc: [ msvc-2022 ] | |
| # - dbg creates very large debugging files and GHA has limited storage. | |
| # - fastbuild also takes too much storage. | |
| compilation_mode: [ opt ] | |
| shard: [ Core ] | |
| include: | |
| - shard: Core | |
| targets: | |
| - //google/cloud/storage/... | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ inputs.checkout-ref }} | |
| - uses: google-github-actions/auth@v2 | |
| if: ${{ inputs.bazel-cache-mode == 'READ_WRITE' }} | |
| with: | |
| create_credentials_file: true | |
| credentials_json: ${{ secrets.BUILD_CACHE_KEY }} | |
| # go/github-actions#gha-bestpractices explains why we use a SHA instead of | |
| # a named version for this runner. We could avoid using this runner with the | |
| # ideas from: | |
| # https://github.com/microsoft/vswhere/wiki/Find-VC | |
| # Note that in other runners the publisher is GitHub. If we trust GitHub | |
| # to run the VM, we should trust their runners. | |
| - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # @v1.13.0 | |
| - name: Pre Build Disk Space | |
| shell: bash | |
| run: df -m | |
| - name: Check installed curl version | |
| shell: bash | |
| run: curl --version | |
| - name: Build google-cloud-cpp | |
| shell: bash | |
| run: | | |
| # Having `/usr/bin/link` in the path will conflict with the MSVC linker. | |
| rm -f /usr/bin/link >/dev/null 2>&1 | |
| # Bazel creates really long paths, sometimes exceeding the MSVC limits. | |
| # Using a short name like this avoids the problem in most cases. | |
| mkdir -p 'c:\b' || true | |
| export BAZEL_ROOT='c:\b' | |
| export BAZEL_REMOTE_CACHE_RW_MODE=${{ inputs.bazel-cache-mode }} | |
| export EXECUTE_INTEGRATION_TESTS=${{ inputs.execute-integration-tests }} | |
| ci/gha/builds/windows-bazel.sh ${{ matrix.compilation_mode }} ${{ join(matrix.targets, ' ') }} | |
| - name: Post Build Disk Space | |
| shell: bash | |
| run: df -m | |
| env: | |
| BAZEL_REMOTE_CACHE: https://storage.googleapis.com/cloud-cpp-community-gha-cache/bazel-cache/${{ matrix.msvc }}/${{ matrix.compilation_mode }} | |
| GHA_TEST_BUCKET: "gcs-grpc-team-cloud-cpp-testing-bucket" |