-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (40 loc) · 1.5 KB
/
build-rippled.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
on:
workflow_call:
outputs:
commit-hash:
value: ${{ jobs.build-rippled.outputs.commit-hash }}
jobs:
build-rippled:
runs-on: ubuntu-latest
outputs:
commit-hash: ${{ steps.commit-hash.outputs.commit-hash }}
steps:
- name: Install dependencies
run: |
pip install -Iv conan==1.59.0
wget https://github.com/Kitware/CMake/releases/download/v3.16.3/cmake-3.16.3-Linux-x86_64.sh
sudo sh cmake-3.16.3-Linux-x86_64.sh --prefix=/usr/local --exclude-subdir
- uses: actions/checkout@v3
with:
repository: XRPLF/rippled
ref: develop
- name: Grab short commit hash and store in env
id: commit-hash
run: echo commit-hash=$(git log -n 1 --pretty=format:"%h") >> "$GITHUB_OUTPUT"
- name: Set up conan
run: |
conan profile new default --detect
conan profile update settings.compiler.cppstd=20 default
conan profile update settings.compiler.libcxx=libstdc++11 default
- name: Build rippled
run: |
conan export external/snappy snappy/1.1.9@
mkdir build
cd build
conan install .. --output-folder . --build missing --settings build_type=Release
cmake -DCMAKE_TOOLCHAIN_FILE:FILEPATH=build/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . -j $(nproc)
- uses: actions/upload-artifact@v3
with:
name: node-executable
path: ./build/rippled