doc: correctly generate Enum doc #4781
Workflow file for this run
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: Build and Test | |
permissions: read-all | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check-cache: | |
runs-on: | |
labels: ubuntu-22.04-8core | |
outputs: | |
runner: ${{ steps.runner.outputs.runner }} | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # pin@v3 | |
- name: Cache bazel build artifacts | |
id: cache | |
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # [email protected] | |
with: | |
path: | | |
~/.cache/bazel | |
key: ${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'WORKSPACE') }}-${{ hashFiles('bazel/import_llvm.bzl') }} | |
restore-keys: | | |
${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'WORKSPACE') }}- | |
lookup-only: true | |
- name: Select runner | |
id: runner | |
env: | |
CACHE_HIT: ${{ steps.cache.outputs.cache-hit == 'true' }} | |
run: | | |
set -euo pipefail | |
if [[ "${CACHE_HIT}" == "true" ]]; then | |
echo "runner=ubuntu-22.04-8core" >> "$GITHUB_OUTPUT" | |
else | |
echo "runner=ubuntu-22.04-32core" >> "$GITHUB_OUTPUT" | |
fi | |
build-and-test: | |
needs: check-cache | |
runs-on: | |
labels: ${{ needs.check-cache.outputs.runner }} | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # pin@v3 | |
- name: Cache bazel build artifacts | |
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # [email protected] | |
with: | |
path: | | |
~/.cache/bazel | |
key: ${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'WORKSPACE') }}-${{ hashFiles('bazel/import_llvm.bzl') }} | |
restore-keys: | | |
${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'WORKSPACE') }}- | |
# --noincompatible_strict_action_env is used below to inherit the path | |
# from the parent process, which is required for the build to be cached | |
# and reused in the `Test rust codegen targets` step below, as that step | |
# requires the `PATH` to find the `cargo` binary. | |
- name: "Run `bazel build`" | |
run: | | |
bazel build --noincompatible_strict_action_env -c fastbuild //... | |
- name: "Run `bazel test`" | |
run: | | |
bazel test --noincompatible_strict_action_env -c fastbuild //... | |
# Tests specifically for the tfhe-rs codegen | |
- name: rustup toolchain install | |
uses: dtolnay/rust-toolchain@439cf607258077187679211f12aa6f19af4a0af7 # [email protected] | |
with: | |
toolchain: stable | |
- name: Test rust codegen targets | |
run: | | |
bash .github/workflows/run_rust_tests.sh |