Fix powershell wrapper #634
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: Continuous integration | |
on: | |
push: | |
pull_request: | |
branches: master | |
workflow_dispatch: # allows manual triggering | |
schedule: | |
- cron: '1 11 * * *' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | |
jobs: | |
build-and-test: | |
name: Bisect | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest] | |
bazel_mode: [module] | |
bazel: | |
- 7.2.1 | |
- 7.3.0 | |
defaults: | |
run: | |
shell: bash | |
runs-on: ${{ matrix.os }} | |
env: | |
USE_BAZEL_VERSION: ${{ matrix.bazel }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: tweag/configure-bazel-remote-cache-auth@v0 | |
with: | |
buildbuddy_api_key: ${{ secrets.BUILDBUDDY_API_KEY }} | |
bazelrc_path: .bazelrc.auth | |
- uses: extractions/netrc@v2 | |
with: | |
machine: api.github.com | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Configure for CI | |
uses: tweag/write-bazelrc@v0 | |
with: | |
content: build --config=ci | |
- name: Disable stardoc | |
# Windows: Stardoc complains about docstring quote indentation on Windows. | |
# bzlmod: Stardoc does not work with bzlmod. | |
if: ${{ runner.os == 'Windows' || matrix.bazel_mode == 'module' }} | |
uses: tweag/write-bazelrc@v0 | |
with: | |
content: build --config=no-stardoc | |
- name: Enable bzlmod | |
uses: tweag/write-bazelrc@v0 | |
if: ${{ matrix.bazel_mode == 'module' }} | |
with: | |
content: build --experimental_enable_bzlmod | |
- name: Run Bazel test under the tests directory | |
uses: ./.github/actions/run_bazel_test | |
with: | |
working-directory: tests | |
- name: Setup tmate session | |
if: ${{ failure() }} | |
uses: mxschmitt/action-tmate@v3 | |