fix C# #3225
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
| # ref: https://github.com/actions/runner-images | |
| name: amd64 Windows Bazel | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - v99bugfix | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{github.workflow}}-${{github.ref}} | |
| cancel-in-progress: true | |
| env: | |
| cache-root: '%USERPROFILE%\AppData\Local\Temp\bazel' | |
| # Building using the github runner environement directly. | |
| jobs: | |
| amd64-Windows-Bazel-Python: | |
| strategy: | |
| matrix: | |
| python: [ | |
| # {version: '3.10'}, | |
| # {version: '3.11'}, | |
| {version: '3.12'}, | |
| # {version: '3.13'}, | |
| # {version: '3.14'}, | |
| ] | |
| fail-fast: false # Don't cancel all jobs if one fails. | |
| env: | |
| cache-name: ${{github.job}}-${{matrix.python.version}} | |
| runs-on: windows-2022 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Check java | |
| run: java -version | |
| - name: Check mvn | |
| run: mvn --version | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{matrix.python.version}} | |
| - name: Check Python | |
| run: python --version | |
| - uses: bazel-contrib/setup-bazel@0.15.0 | |
| - name: Check Bazel | |
| run: bazel version | |
| - name: Restore bazel cache | |
| uses: actions/cache/restore@v5 | |
| id: bazel-cache-restore | |
| with: | |
| key: ${{env.cache-name}} | |
| path: ${{env.cache-root}} | |
| - name: Build | |
| run: bazel --output_user_root=${{env.cache-root}} build --config=ci //... | |
| - name: Test | |
| run: bazel --output_user_root=${{env.cache-root}} test --config=ci //... | |
| - name: Save Bazel cache for branch main even when Build and Test fail. | |
| uses: actions/cache/save@v5 | |
| # https://docs.github.com/en/actions/reference/workflows-and-actions/dependency-caching#restrictions-for-accessing-a-cache | |
| if: always() && github.ref == 'refs/heads/main' | |
| with: | |
| key: ${{env.cache-name}}-${{github.sha}} | |
| path: ${{env.cache-root}} | |
| amd64_windows_bazel: | |
| runs-on: ubuntu-latest | |
| needs: amd64-Windows-Bazel-Python | |
| steps: | |
| - uses: actions/checkout@v6 |