forked from FISCO-BCOS/FISCO-BCOS
-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (52 loc) · 1.58 KB
/
workflow-self-hosted-mac.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
name: Mac CI Check
on:
push:
paths-ignore:
- "docs/**"
- "Changelog.md"
- "README.md"
pull_request:
paths-ignore:
- "docs/**"
- "Changelog.md"
- "README.md"
branches:
- release-3.*
- feature-3.*
- master
release:
types: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build_mac:
name: mac ci check
runs-on: self-hosted-mac3.4
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
clean: false
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 8
java-package: jdk
- name: Remove cache if correspond dir change
run: ./tools/.ci/clear_build_cache.sh
- name: Build for mac
run: |
mkdir -p build && cd build && rm -rf CMakeCache.txt
cmake -DCMAKE_BUILD_TYPE=Release -DTESTS=ON -DCOVERAGE=OFF -DVCPKG_HOST_TRIPLET=arm64-osx -DVCPKG_TARGET_TRIPLET=arm64-osx -DWITH_LIGHTNODE=ON -DWITH_CPPSDK=ON -DWITH_TIKV=OFF -DWITH_TARS_SERVICES=ON -DURL_BASE=ghproxy.com/github.com .. || cat *.log
cmake --build . --parallel 8
- name: Test
run: |
cd build
CTEST_OUTPUT_ON_FAILURE=TRUE make test
- name: Integration test - Air
run: cd tools && bash .ci/ci_check_air.sh ${{ github.base_ref }}
- name: Integration test - Pro
run: cd tools && bash .ci/ci_check_pro.sh ${{ github.base_ref }}