-
Notifications
You must be signed in to change notification settings - Fork 191
66 lines (60 loc) · 1.71 KB
/
debian-sapi-generator-tool.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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 \
ninja-build \
software-properties-common \
wget
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
./llvm.sh 16 all
- name: Configure CMake
run: |
mkdir -p "$GITHUB_WORKSPACE/build"
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
( \
cd "$GITHUB_WORKSPACE/build"; \
mv sandboxed_api/tools/clang_generator/sapi_generator_tool \
sapi_generator_tool-linux-x86_64; \
)
- name: Upload Build Artifact
uses: actions/[email protected]
with:
name: sapi_generator_tool-linux
path: ${{github.workspace}}/build/sapi_generator_tool-linux-x86_64