Skip to content

Commit

Permalink
Merge pull request #397 from Raptor3um/release/2.0.3-rc
Browse files Browse the repository at this point in the history
Release/2.0.3
  • Loading branch information
npq7721 authored Aug 20, 2024
2 parents 1de001d + 67dc666 commit 81851e8
Show file tree
Hide file tree
Showing 2,555 changed files with 522,598 additions and 117,335 deletions.
96 changes: 50 additions & 46 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
branches:
- master
- develop
- 'ft/*'
- 'bug/*'
- 'release/*'
- "ft/*"
- "bug/*"
- "release/*"
pull_request:
branches:
- develop
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
uses: christian-draeger/[email protected]
with:
path: build.properties
properties: 'release-version candidate-version snapshot-version'
properties: "release-version candidate-version snapshot-version"

- name: Choose version
id: selected-version
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Install Required Packages
run: |
sudo apt-get update -y
sudo apt-get install curl build-essential libtool autotools-dev automake pkg-config python3 bsdmainutils cmake -y
sudo apt-get install curl libcurl4-openssl-dev build-essential libtool autotools-dev automake pkg-config python3 bsdmainutils cmake -y
- name: Build Depends
run: |
echo "building with $(nproc) threads"
Expand All @@ -90,8 +90,8 @@ jobs:
run: |
make -j$(nproc)
mkdir -p ${BUILD_DIR} ${BUILD_DIR}_not_strip ${TEST_DIR}
cp src/{raptoreum-cli,raptoreum-tx,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}/
mv src/{raptoreum-cli,raptoreum-tx,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}_not_strip/
cp src/{raptoreum-cli,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}/
mv src/{raptoreum-cli,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}_not_strip/
mv src/test/test_raptoreum ${TEST_DIR}
strip ${BUILD_DIR}/*
Expand All @@ -100,10 +100,10 @@ jobs:
make clean
make distclean
./autogen.sh
./configure --prefix=`pwd`/depends/x86_64-pc-linux-gnu --disable-tests --enable-debug
./configure --prefix=`pwd`/depends/x86_64-pc-linux-gnu --disable-tests --enable-debug --enable-crash-hooks
make -j$(nproc)
mkdir -p ${BUILD_DIR}_debug
mv src/{raptoreum-cli,raptoreum-tx,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}_debug/
mv src/{raptoreum-cli,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}_debug/
- name: Generate Checksum and Compress
run: |
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:

test-ubuntu20:
name: Ubuntu 20 Tests
needs: [ get-version, build-ubuntu20 ]
needs: [get-version, build-ubuntu20]
runs-on: ubuntu-20.04

steps:
Expand All @@ -176,8 +176,8 @@ jobs:
- name: Run Unit Tests
id: Tests
run: |
chmod +x test_raptoreum
./test_raptoreum --log_format=JUNIT > unit_test_results.xml
chmod +x test_raptoreum
./test_raptoreum --log_format=JUNIT > unit_test_results.xml
- name: Upload Test Artifacts
uses: actions/upload-artifact@v3
Expand All @@ -193,7 +193,7 @@ jobs:
check_name: "Ubuntu 20"
detailed_summary: ${{ steps.Tests.conclusion == 'failure'}}
include_passed: false
report_paths: 'unit_test_results.xml'
report_paths: "unit_test_results.xml"

build-ubuntu22:
name: Ubuntu 22 Build
Expand All @@ -207,7 +207,7 @@ jobs:
- name: Install Required Packages
run: |
sudo apt-get update -y
sudo apt-get install curl build-essential libtool autotools-dev automake pkg-config python3 bsdmainutils cmake -y
sudo apt-get install curl libcurl4-openssl-dev build-essential libtool autotools-dev automake pkg-config python3 bsdmainutils cmake -y
- name: Build Depends
run: |
Expand All @@ -220,13 +220,15 @@ jobs:
run: |
./autogen.sh
./configure --prefix=`pwd`/depends/x86_64-pc-linux-gnu
# TODO: @Jami - this line was from malbit, I think we may not need it but could you help confirm?
# CONFIG_SITE=$PWD/depends/x86_64-pc-linux-gnu/share/config.site ./configure

- name: Build Binaries
run: |
make -j$(nproc)
mkdir -p ${BUILD_DIR} ${BUILD_DIR}_not_strip ${TEST_DIR}
cp src/{raptoreum-cli,raptoreum-tx,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}/
mv src/{raptoreum-cli,raptoreum-tx,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}_not_strip/
cp src/{raptoreum-cli,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}/
mv src/{raptoreum-cli,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}_not_strip/
mv src/test/test_raptoreum ${TEST_DIR}
strip ${BUILD_DIR}/*
Expand All @@ -235,10 +237,10 @@ jobs:
make clean
make distclean
./autogen.sh
./configure --prefix=`pwd`/depends/x86_64-pc-linux-gnu --disable-tests --enable-debug
./configure --prefix=`pwd`/depends/x86_64-pc-linux-gnu --disable-tests --enable-debug --enable-crash-hooks
make -j$(nproc)
mkdir -p ${BUILD_DIR}_debug
mv src/{raptoreum-cli,raptoreum-tx,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}_debug/
mv src/{raptoreum-cli,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}_debug/
- name: Generate Checksum and Compress
run: |
Expand Down Expand Up @@ -299,7 +301,7 @@ jobs:

test-ubuntu22:
name: Ubuntu 22 Tests
needs: [ get-version, build-ubuntu22 ]
needs: [get-version, build-ubuntu22]
runs-on: ubuntu-22.04

steps:
Expand Down Expand Up @@ -328,21 +330,22 @@ jobs:
check_name: "Ubuntu 22"
detailed_summary: ${{ steps.Tests.conclusion == 'failure'}}
include_passed: false
report_paths: 'unit_test_results.xml'
report_paths: "unit_test_results.xml"

build-macos:
name: macOS 11 Build
name: macOS 12 Build
needs: get-version
runs-on: macos-11
runs-on: macos-12

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Required Packages
run: |
brew install automake libtool pkg-config miniupnpc librsvg libnatpmp zeromq python
brew install automake libtool pkg-config librsvg libnatpmp python
pip3 install ds_store mac_alias
pip3 install -U pip setuptools
- name: Build Depends
run: |
Expand All @@ -359,8 +362,8 @@ jobs:
run: |
make -j8
mkdir -p ${BUILD_DIR} ${BUILD_DIR}_not_strip ${TEST_DIR}
cp src/{raptoreum-cli,raptoreum-tx,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}/
mv src/{raptoreum-cli,raptoreum-tx,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}_not_strip/
cp src/{raptoreum-cli,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}/
mv src/{raptoreum-cli,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}_not_strip/
mv src/test/test_raptoreum ${TEST_DIR}
strip ${BUILD_DIR}/*
Expand Down Expand Up @@ -413,10 +416,10 @@ jobs:
run: |
make deploy
mkdir -p macos-dmg
mv Raptoreum-Qt.dmg macos-dmg/
mv Raptoreum-Core.dmg macos-dmg/
cd macos-dmg
echo "sha256: `shasum Raptoreum-Qt.dmg`" >> checksums.txt
echo "openssl-sha256: `openssl sha256 Raptoreum-Qt.dmg`" >> checksums.txt
echo "sha256: `shasum Raptoreum-Core.dmg`" >> checksums.txt
echo "openssl-sha256: `openssl sha256 Raptoreum-Core.dmg`" >> checksums.txt
cd ..
- name: Upload dmg file
Expand All @@ -427,8 +430,8 @@ jobs:

test-macos:
name: macOS Tests
needs: [ get-version, build-macos ]
runs-on: macos-11
needs: [get-version, build-macos]
runs-on: macos-12

steps:
- name: Download Artifacts
Expand Down Expand Up @@ -456,7 +459,7 @@ jobs:
check_name: "macOS 11"
detailed_summary: ${{ steps.Tests.conclusion == 'failure'}}
include_passed: false
report_paths: 'unit_test_results.xml'
report_paths: "unit_test_results.xml"

# build-arm-32:
# name: ARM 32-bit Build
Expand Down Expand Up @@ -487,7 +490,7 @@ jobs:
# run: |
# make -j$(nproc)
# mkdir -p ${BUILD_DIR} ${TEST_DIR}
# mv src/{raptoreum-cli,raptoreum-tx,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}/
# mv src/{raptoreum-cli,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}/
# mv src/test/test_raptoreum ${TEST_DIR}

# - name: Build Debug Binaries
Expand All @@ -498,7 +501,7 @@ jobs:
# ./configure --prefix=`pwd`/depends/arm-linux-gnueabihf --disable-tests --enable-debug
# make -j$(nproc)
# mkdir -p ${BUILD_DIR}_debug
# mv src/{raptoreum-cli,raptoreum-tx,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}_debug/
# mv src/{raptoreum-cli,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}_debug/

# - name: Generate Checksum and Compress
# run: |
Expand Down Expand Up @@ -598,7 +601,7 @@ jobs:
- name: Install Required Packages
run: |
sudo apt-get update -y
sudo apt-get install curl build-essential libtool g++-aarch64-linux-gnu autotools-dev automake pkg-config python3 bsdmainutils cmake -y
sudo apt-get install curl libcurl4-openssl-dev build-essential libtool g++-aarch64-linux-gnu autotools-dev automake pkg-config python3 bsdmainutils cmake -y
- name: Build Depends
run: |
Expand All @@ -615,18 +618,18 @@ jobs:
run: |
make -j$(nproc)
mkdir -p ${BUILD_DIR} ${TEST_DIR}
mv src/{raptoreum-cli,raptoreum-tx,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}/
mv src/{raptoreum-cli,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}/
mv src/test/test_raptoreum ${TEST_DIR}/
- name: Build Debug Binaries
run: |
make clean
make distclean
./autogen.sh
./configure --prefix=`pwd`/depends/aarch64-linux-gnu --disable-tests --enable-debug
./configure --prefix=`pwd`/depends/aarch64-linux-gnu --disable-tests --enable-debug --enable-crash-hooks
make -j$(nproc)
mkdir -p ${BUILD_DIR}_debug
mv src/{raptoreum-cli,raptoreum-tx,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}_debug/
mv src/{raptoreum-cli,raptoreumd,qt/raptoreum-qt} ${BUILD_DIR}_debug/
- name: Generate Checksum and Compress
run: |
Expand Down Expand Up @@ -675,7 +678,7 @@ jobs:

test-arm-64:
name: ARM 64-bit Tests
needs: [ get-version, build-arm-64 ]
needs: [get-version, build-arm-64]
runs-on: ubuntu-20.04

steps:
Expand All @@ -694,8 +697,8 @@ jobs:
copy_artifact_path: unit_test_results.xml
copy_artifacts_on_fail: yes
commands: |
chmod +x test_raptoreum
./test_raptoreum --log_format=JUNIT > unit_test_results.xml
chmod +x test_raptoreum
./test_raptoreum --log_format=JUNIT > unit_test_results.xml
- name: Upload Test Artifacts
uses: actions/upload-artifact@v3
Expand All @@ -711,7 +714,7 @@ jobs:
check_name: "ARM 64-bit"
detailed_summary: ${{ steps.Tests.conclusion == 'failure'}}
include_passed: false
report_paths: 'unit_test_results.xml'
report_paths: "unit_test_results.xml"

build-win64:
name: Win64 Build
Expand All @@ -725,7 +728,7 @@ jobs:
- name: Install Required Packages
run: |
sudo apt-get update -y
sudo apt-get install curl build-essential libtool autotools-dev automake pkg-config python3 bsdmainutils cmake -y
sudo apt-get install curl libcurl4-openssl-dev build-essential libtool autotools-dev automake pkg-config python3 bsdmainutils cmake -y
sudo apt-get install -y g++-mingw-w64-x86-64 gcc-mingw-w64-x86-64 nsis
sudo update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
Expand All @@ -741,13 +744,14 @@ jobs:
./autogen.sh
export FALLBACK_DOWNLOAD_PATH=https://pool.nowput.org/depends/
./configure --prefix=`pwd`/depends/x86_64-w64-mingw32
# CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure

- name: Build Binaries
run: |
make -j$(nproc)
mkdir -p ${BUILD_DIR} ${BUILD_DIR}_not_strip ${TEST_DIR}
cp src/{raptoreum-cli.exe,raptoreum-tx.exe,raptoreumd.exe,qt/raptoreum-qt.exe} ${BUILD_DIR}/
mv src/{raptoreum-cli.exe,raptoreum-tx.exe,raptoreumd.exe,qt/raptoreum-qt.exe} ${BUILD_DIR}_not_strip/
cp src/{raptoreum-cli.exe,raptoreumd.exe,qt/raptoreum-qt.exe} ${BUILD_DIR}/
mv src/{raptoreum-cli.exe,raptoreumd.exe,qt/raptoreum-qt.exe} ${BUILD_DIR}_not_strip/
mv src/test/test_raptoreum.exe ${TEST_DIR}
strip ${BUILD_DIR}/*
Expand Down Expand Up @@ -814,7 +818,7 @@ jobs:

test-win64:
name: Win64 Tests
needs: [ get-version, build-win64 ]
needs: [get-version, build-win64]
runs-on: windows-latest

steps:
Expand Down Expand Up @@ -849,4 +853,4 @@ jobs:
check_name: "Win64"
detailed_summary: ${{ steps.Tests.conclusion == 'failure'}}
include_passed: false
report_paths: 'unit_test_results.xml'
report_paths: "unit_test_results.xml"
17 changes: 13 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ reset-files.bash
*.tar.gz

*.exe
*.pdb
src/raptoreum
src/raptoreumd
src/raptoreum-cli
src/raptoreum-tx
src/raptoreum-wallet
src/test/fuzz
!src/test/fuzz/*.*
src/test/test_raptoreum
src/test/test_raptoreum_fuzzy
src/qt/test/test_raptoreum-qt
Expand All @@ -35,6 +38,7 @@ build-aux/compile
build-aux/test-driver
config.log
config.status
config.status.old
configure
libtool
src/config/raptoreum-config.h
Expand Down Expand Up @@ -85,9 +89,8 @@ libconftest.dylib*
# Compilation and Qt preprocessor part
*.qm
Makefile
raptoreum-qt
src/qt/raptoreum-qt
Raptoreum-Qt.app
background.tiff*
!/depends/Makefile

# Unit-tests
Expand All @@ -101,14 +104,15 @@ qrc_*.cpp
.DS_Store
build
*.dSYM

._*
#lcov
*.gcno
*.gcda
/*.info
test_raptoreum.coverage/
total.coverage/
coverage_percent.txt
/cov_tool_wraper.sh

#build tests
linux-coverage-build
Expand All @@ -133,6 +137,7 @@ qa/pull-tester/tests-config.sh
raptoreum-cli
raptoreumd
raptoreum-qt
raptoreum-wallet
make

/docker/bin
Expand All @@ -152,3 +157,7 @@ dist/
/raptoreum.iml
/testnet3_binary/
/testnet4/

osx_volname
dist/
src/test/runtest.sh
Loading

0 comments on commit 81851e8

Please sign in to comment.