sandboxed-api/.github/workflows/debian-sapi-generator-tool.yml
Christian Blichmann cc8b5fb4fc GitHub Workflows: Prefix worklow names with OS name
This makes workflows easier to distingiush in the GitHub UI.

PiperOrigin-RevId: 532407546
Change-Id: I827c6f4750cd0fcbd0e670e06703cd3ffd46b59d
2023-05-16 04:06:15 -07:00

60 lines
1.4 KiB
YAML

name: debian-sapi-generator-tool
on: push
jobs:
build:
runs-on: ubuntu-latest
container: debian:10.13
steps:
- uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v3
with:
key: debian-10.13-clang16
path: |
${{github.workspace}}/build/_deps
- name: Install build tools
run: |
apt-get update
env DEBIAN_FRONTEND=noninteractive \
apt-get install -qy --no-install-recommends \
build-essential \
ca-certificates \
cmake \
file \
git \
gnupg \
libc6-dev \
lsb-release \
make \
software-properties-common \
wget
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
./llvm.sh 16 all
- name: Install ninja-build tool
uses: seanmiddleditch/gha-setup-ninja@v3
- name: Create Build Environment
run: |
cmake -E make_directory $GITHUB_WORKSPACE/build
- name: Configure CMake
run: |
cmake \
-S $GITHUB_WORKSPACE \
-B $GITHUB_WORKSPACE/build \
-G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DSAPI_ENABLE_CLANG_TOOL=ON \
-DSAPI_ENABLE_CLANG_TOOL_STATIC=ON
- name: Build
run: |
cmake \
--build $GITHUB_WORKSPACE/build \
--config Release \
--target sapi_generator_tool