Skip to content

Commit f1370cb

Browse files
Setup temporary regtest build for tests
* TODO Dismiss this change and re-enable standard build process after woodser/monero-cpp#95 merge and release
1 parent bc6ad73 commit f1370cb

1 file changed

Lines changed: 35 additions & 9 deletions

File tree

.github/workflows/test.yml

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,30 +50,56 @@ jobs:
5050
sudo make install
5151
cd ../
5252
53-
- name: Update submodules
53+
# TODO re-enable this after https://github.com/woodser/monero-cpp/pull/95 and remove custom regtest build
54+
# - name: Update submodules
55+
# run: |
56+
# git submodule update --init --recursive
57+
58+
# - name: Build monero
59+
# run: |
60+
# mkdir build
61+
# cd external/monero-cpp/external/monero-project
62+
# mkdir -p build/release
63+
# cd build/release
64+
# cmake -DSTATIC=ON -DBUILD_64=ON -DCMAKE_BUILD_TYPE=Release ../../
65+
# make -j3 wallet cryptonote_protocol
66+
# cd ../../../../../../
67+
68+
# - name: Build monero-cpp
69+
# run: |
70+
# cd external/monero-cpp
71+
# mkdir -p build
72+
# cd build
73+
# cmake ..
74+
# cmake --build .
75+
# make -j3
76+
# sudo cp libmonero-cpp.so /usr/lib/
77+
# cd ../../../
78+
79+
# TODO remove regtest build
80+
- name: Clone monero-cpp (regtest)
5481
run: |
55-
git submodule update --init --recursive
82+
git clone -b regtest-env --single-branch --recurse-submodules https://github.com/everoddandeven/monero-cpp.git
5683
57-
- name: Build monero
84+
- name: Build monero (regtest)
5885
run: |
59-
mkdir build
60-
cd external/monero-cpp/external/monero-project
86+
cd monero-cpp/external/monero-project
6187
mkdir -p build/release
6288
cd build/release
6389
cmake -DSTATIC=ON -DBUILD_64=ON -DCMAKE_BUILD_TYPE=Release ../../
6490
make -j3 wallet cryptonote_protocol
65-
cd ../../../../../../
91+
cd ../../../../../
6692
67-
- name: Build monero-cpp
93+
- name: Install monero-cpp (regtest)
6894
run: |
69-
cd external/monero-cpp
95+
cd monero-cpp
7096
mkdir -p build
7197
cd build
7298
cmake ..
7399
cmake --build .
74100
make -j3
75101
sudo cp libmonero-cpp.so /usr/lib/
76-
cd ../../../
102+
cd ../../
77103
78104
- name: Install monero-python
79105
run: |

0 commit comments

Comments
 (0)