-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.yml
42 lines (42 loc) · 1.06 KB
/
build.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
name: yoauth
variables:
- build_type: release
- yoauth_tag: v1.0.17
- mugglec_tag: v1.4.3
- openssl_tag: openssl-3.1.4
- unity_tag: v2.5.2
source:
maintainer: mugglewei
name: yoauth
tag: ${yoauth_tag}
deps:
- maintainer: mugglewei
name: mugglec
tag: ${mugglec_tag}
- maintainer: openssl
name: openssl
tag: ${openssl_tag}
test_deps:
- maintainer: ThrowTheSwitch
name: unity
tag: ${unity_tag}
jobs:
build:
steps:
- name: build
run: >
cmake \
-S ${HPB_SOURCE_PATH} \
-B ${HPB_BUILD_DIR} \
-DCMAKE_BUILD_TYPE=${build_type} \
-DCMAKE_INSTALL_PREFIX=${HPB_OUTPUT_DIR} \
-DBUILD_TESTING=OFF \
-DCMAKE_PREFIX_PATH="${HPB_DEPS_DIR};${HPB_TEST_DEPS_DIR}";
cmake --build ${HPB_BUILD_DIR} --config ${build_type};
cmake --build ${HPB_BUILD_DIR} --config ${build_type} --target install;
package:
steps:
- name: package
run: >
cd ${HPB_TASK_DIR};
hpb pack --copy-to ${HPB_ROOT_DIR}/dist;