Add Windows CI #422
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
| # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions | |
| name: BazelTest | |
| on: [push, workflow_dispatch] | |
| jobs: | |
| bazel_test: | |
| strategy: | |
| matrix: | |
| # TODO: b/365609306 - Enable macos-latest runner. | |
| os: [ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| ANDROID_NDK_HOME: "." | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # gmock wants libtinfo5 which is not preinstalled on the ubuntu-latest GitHub Actions runner | |
| # (and as of the latest version, not available in the package manager). | |
| - name: Install libtinfo5 (Linux only) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| wget https://mirrors.kernel.org/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.1_amd64.deb | |
| echo "f04c382f877c9eab631818eadbfaa0c5 libtinfo5_6.3-2ubuntu0.1_amd64.deb" | md5sum -c --status | |
| sudo dpkg -i libtinfo5_6.3-2ubuntu0.1_amd64.deb | |
| - name: Test (Linux config) | |
| if: runner.os != 'Windows' | |
| run: bazel test --keep_going --test_output=errors //ink/... | |
| - name: Test (Windows config) | |
| if: runner.os == 'Windows' | |
| run: bazel test --config=win_clang --keep_going --test_output=errors --keep_going //ink/... |