forked from FISCO-BCOS/FISCO-BCOS
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (65 loc) · 2.44 KB
/
arm_runner.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
name: FISCO-BCOS GitHub Actions arm
on:
push:
branches-ignore:
- "**-1.3"
- "**-1.5"
tags-ignore:
- v1.*
paths-ignore:
- "docs/**"
- "Changelog.md"
- "README.md"
pull_request:
paths-ignore:
- "docs/**"
- "Changelog.md"
- "README.md"
release:
types: [published, created, edited]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CCACHE_DIR: ${{ github.workspace }}/ccache
jobs:
build:
name: build_arm
runs-on: self-hosted-arm-2.0
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 5
- uses: actions/cache@v3
id: cache
with:
path: deps/src
key: deps-aarch64-v0-${{ runner.temp }}-${{ github.base_ref }}-${{ hashFiles('.github/workflows/arm_runner.yml') }}
restore-keys: |
deps-aarch64-v0-${{ runner.temp }}-${{ github.base_ref }}-${{ hashFiles('.github/workflows/arm_runner.yml') }}
deps-aarch64-v0-${{ runner.temp }}-${{ github.base_ref }}-
deps-aarch64-v0-${{ runner.temp }}-
- name: install ubuntu dependencies
run: sudo apt install -y g++ libssl-dev openssl git build-essential autoconf texinfo flex patch bison libgmp-dev zlib1g-dev automake libtool curl && sudo apt -y remove libtbb-dev
- name: Setup cmake
run: curl -sSL https://cmake.org/files/v3.21/cmake-3.21.0-linux-aarch64.tar.gz | sudo tar -xzC /usr
- name: configure without tbb
run: export PATH=$PATH:/usr/cmake-3.21.0-linux-aarch64/bin;cmake . -DWITH_TBB=OFF
- name: compile fisco-bcos
run: make fisco-bcos -j4
- name: tar fisco-bcos for ubuntu
run: cp tools/build_chain.sh bin/ && cd bin && strip fisco-bcos && tar -zcf fisco-bcos.tar.gz fisco-bcos build_chain.sh
- uses: actions/upload-artifact@v4
with:
name: fisco-bcos.tar.gz
path: bin/fisco-bcos.tar.gz
- name: configure
run: export PATH=$PATH:/usr/cmake-3.21.0-linux-aarch64/bin;cmake . -DWITH_TBB=ON
- name: compile all
run: make fisco-bcos -j4
- name: tar fisco-bcos for ubuntu
run: cp tools/build_chain.sh bin/ && cd bin && strip fisco-bcos && tar -zcf fisco-bcos.tar.gz fisco-bcos build_chain.sh
- uses: actions/upload-artifact@v4
with:
name: fisco-bcos-without-tbb.tar.gz
path: bin/fisco-bcos.tar.gz