Skip to content

[ci] install clang-14, build, and run tests #5

[ci] install clang-14, build, and run tests

[ci] install clang-14, build, and run tests #5

Workflow file for this run

name: Build
permissions:
contents: read
on:
pull_request:
push:
branches:
- main
concurrency:
group: >-
${{ github.event.inputs.head_ref || github.run_id }}
jobs:
build_and_test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Download build dependencies
shell: bash
run: |
mkdir -p build_deps/clang-14
cd build_deps/clang-14
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.0/clang+llvm-14.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz
tar -xf clang+llvm-14.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz --strip-components 1
cd bin
echo "$(pwd)" >> $GITHUB_PATH
- name: Build :all_libs
run: |
bazel build --config=ci //:all_libs
- name: Run tests
run: |
bazel test --config=ci ...