-
Notifications
You must be signed in to change notification settings - Fork 3
67 lines (59 loc) · 1.87 KB
/
ci.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
66
67
name: CI
on:
push:
branches: [main, release-*]
pull_request:
branches: [main, release-*]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install -y \
build-essential \
cmake \
git \
curl \
zip \
unzip \
tar \
pkg-config \
python3
- name: Install vcpkg
run: |
git clone https://github.com/Microsoft/vcpkg.git $HOME/vcpkg
$HOME/vcpkg/bootstrap-vcpkg.sh
- name: Cache vcpkg packages
uses: actions/cache/restore@v3
with:
path: /home/runner/vcpkg
key: Linux-vcpkg-${{ hashFiles('**/CMakeLists.txt') }}
- name: Install project dependencies with vcpkg
run: |
$HOME/vcpkg/vcpkg install re2
$HOME/vcpkg/vcpkg install aws-sdk-cpp
$HOME/vcpkg/vcpkg install google-cloud-cpp[storage]
$HOME/vcpkg/vcpkg install azure-storage-blobs-cpp
$HOME/vcpkg/vcpkg install rapidjson
- name: Cache vcpkg packages
uses: actions/cache/save@v3
with:
path: /home/runner/vcpkg
key: Linux-vcpkg-${{ hashFiles('**/CMakeLists.txt') }}
- name: Build repository agent
run: |
mkdir -p $HOME/build && cd $HOME/build
cmake -DCMAKE_TOOLCHAIN_FILE=$HOME/vcpkg/scripts/buildsystems/vcpkg.cmake \
-DCMAKE_INSTALL_PREFIX:PATH=`pwd`/install \
-DTRITON_ENABLE_GCS=true \
-DTRITON_ENABLE_AZURE_STORAGE=true \
-DTRITON_ENABLE_S3=true \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
$GITHUB_WORKSPACE
make install