Ensure ResourceSharingEnabled pass check works on compound passes configured from protos #8152
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/reference/workflow-syntax-for-github-actions | |
# See also: https://github.com/marketplace/actions/bazel-action | |
name: Continuous Integration | |
on: | |
# Avoid triggering on pushes to /all/ open PR branches. | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
# This lets us trigger manually from the UI. | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Bazel Build (opt) | |
runs-on: | |
labels: ubuntu-22.04-64core | |
timeout-minutes: 600 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install pre-commit | |
run: pip install pre-commit | |
- name: Run pre-commit checks | |
run: pre-commit run --all-files --show-diff-on-failure | |
- name: Install dependencies via apt | |
run: | | |
sudo apt-get install -y python3-dev python-is-python3 build-essential liblapack-dev libblas-dev gfortran libtinfo6 | |
- name: Restore Nightly Bazel Cache | |
uses: actions/cache/restore@v4 | |
with: | |
path: "~/.cache/bazel" | |
key: bazel-cache-nightly-${{ runner.os }}-${{ github.sha }} | |
restore-keys: bazel-cache-nightly-${{ runner.os }}- | |
- name: Bazel Build Tools (opt) | |
run: | | |
bazel build --config=ci -c opt --noshow_progress --test_output=errors -- //xls/dslx:interpreter_main //xls/dslx/ir_convert:ir_converter_main //xls/tools:opt_main //xls/tools:codegen_main | |
- name: Bazel Test xls/... (opt) | |
run: | | |
bazel test --config=ci -c opt --noshow_progress --test_output=errors -- //xls/... -//xls/contrib/... -//xls/dev_tools/... //docs_src/... //xls/tests:documentation_test | |
- name: Bazel Test Including Contrib & DevTools (opt) | |
run: | | |
bazel test --config=ci -c opt --noshow_progress --test_output=errors -- //... |