Fix outline layout in docs and typos in docs (#166) #313
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: "macOS CI" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
release: | |
types: | |
- created | |
jobs: | |
build-debug: | |
runs-on: macos-12 | |
name: "Bazel Debug Build" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{github.event.pull_request.head.ref}} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
- name: Bazel cache | |
id: cache-bazel-debug | |
uses: actions/[email protected] | |
with: | |
path: ~/.cache/bazel/ | |
key: ${{ runner.os }}-bazel-debug | |
- name: "Building debug" | |
run: | | |
bazelisk build --keep_going --disk_cache=~/.cache/bazel/ --config clang --config debug --features asan //qir/... | |
env: | |
CC: clang | |
CXX: clang++ | |
build-release: | |
runs-on: macos-12 | |
name: "Bazel Release Build" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{github.event.pull_request.head.ref}} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
- name: Bazel cache | |
id: cache-bazel-release | |
uses: actions/[email protected] | |
with: | |
path: ~/.cache/bazel/ | |
key: ${{ runner.os }}-bazel-release | |
- name: "Building release" | |
run: | | |
bazelisk build --keep_going --disk_cache=~/.cache/bazel/ --config clang //qir/... | |
env: | |
CC: clang | |
CXX: clang++ | |
test-debug: | |
runs-on: macos-12 | |
name: "Bazel Debug Test" | |
needs: [build-debug] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{github.event.pull_request.head.ref}} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
- name: Bazel cache | |
id: cache-bazel-debug | |
uses: actions/[email protected] | |
with: | |
path: ~/.cache/bazel/ | |
key: ${{ runner.os }}-bazel-debug | |
- name: "Running debug unit tests with address sanitation" | |
run: | | |
bazelisk test --test_output=all --keep_going --disk_cache=~/.cache/bazel/ --config clang --config debug --features asan //qir/... | |
env: | |
CC: clang | |
CXX: clang++ | |
test-release: | |
runs-on: macos-12 | |
name: "Bazel Release Test" | |
needs: [build-release] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{github.event.pull_request.head.ref}} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
- name: Bazel cache | |
id: cache-bazel-release | |
uses: actions/[email protected] | |
with: | |
path: ~/.cache/bazel/ | |
key: ${{ runner.os }}-bazel-release | |
- name: "Running release tests" | |
run: | | |
bazelisk test --test_output=all --keep_going --disk_cache=~/.cache/bazel/ --config clang //qir/... | |
env: | |
CC: clang | |
CXX: clang++ |