Skip to content

Commit

Permalink
Merge pull request #600 from KomodoPlatform/dev
Browse files Browse the repository at this point in the history
[release] v0.8.1 [Falkor]
  • Loading branch information
ca333 authored Nov 14, 2023
2 parents 156dba6 + c248b15 commit d9144d0
Show file tree
Hide file tree
Showing 24 changed files with 1,157 additions and 128 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/komodo_linux_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

linux-build:
name: Linux Build
runs-on: ubuntu-latest
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -47,9 +47,10 @@ jobs:
path: ./komodo-linux.tar.gz

linux-test-dice-token-reards-faucet-cc:
if: ${{ false }}

name: Test (Linux/Dice, Token, Faucet, Rewards)
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: linux-build

steps:
Expand Down Expand Up @@ -83,9 +84,10 @@ jobs:
cd qa/pytest_komodo
./ci_setup.sh "cc_modules/test_dice.py cc_modules/test_faucet.py cc_modules/test_token.py cc_modules/test_rewards.py"
linux-test-oracles:
if: ${{ false }}

name: Test (Linux/OraclesCC)
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: linux-build

steps:
Expand Down Expand Up @@ -119,9 +121,10 @@ jobs:
cd qa/pytest_komodo
./ci_setup.sh cc_modules/test_oracles.py
linux-test-baserpc:
if: ${{ false }}

name: Test (Linux/BasicRPC)
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: linux-build

steps:
Expand Down Expand Up @@ -155,9 +158,10 @@ jobs:
cd qa/pytest_komodo
./ci_setup.sh basic
linux-test-channels:
if: ${{ false }}

name: Test (Linux/ChannelsCC)
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: linux-build

steps:
Expand Down Expand Up @@ -191,9 +195,10 @@ jobs:
cd qa/pytest_komodo
./ci_setup.sh cc_modules/test_channels.py
linux-test-heir:
if: ${{ false }}

name: Test (Linux/HeirCC)
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: linux-build

steps:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/komodo_mac_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@ jobs:
steps:
- uses: actions/checkout@v2

# Workaround for https://github.com/actions/setup-python/issues/577
- name: Clean up binaries and links (macOS)
run: |
rm -f /usr/local/bin/2to3-3.*
rm -f /usr/local/bin/idle3.*
rm -f /usr/local/bin/pydoc3.*
rm -f /usr/local/bin/python3.*
rm -f /usr/local/bin/2to3
rm -f /usr/local/bin/idle3
rm -f /usr/local/bin/pydoc3
rm -f /usr/local/bin/python3
rm -f /usr/local/bin/python3-config
- name: Install deps (macOS)
run: |
brew update
Expand Down Expand Up @@ -43,6 +56,7 @@ jobs:
path: ./komodo-macos.tar.gz

macos-test-dice-token-reards-faucet-cc:
if: ${{ false }}

name: Test (MacOS/Dice, Token, Faucet, Rewards)
runs-on: macos-latest
Expand Down Expand Up @@ -72,6 +86,7 @@ jobs:
./ci_setup.sh "cc_modules/test_dice.py cc_modules/test_faucet.py cc_modules/test_token.py cc_modules/test_rewards.py"
macos-test-oracles:
if: ${{ false }}

name: Test (macos/OraclesCC)
runs-on: macos-latest
Expand Down Expand Up @@ -100,6 +115,7 @@ jobs:
./ci_setup.sh cc_modules/test_oracles.py
macos-test-baserpc:
if: ${{ false }}

name: Test (macos/BasicRPC)
runs-on: macos-latest
Expand Down Expand Up @@ -128,6 +144,7 @@ jobs:
./ci_setup.sh basic
macos-test-channels:
if: ${{ false }}

name: Test (macos/ChannelsCC)
runs-on: macos-latest
Expand Down Expand Up @@ -156,6 +173,7 @@ jobs:
./ci_setup.sh cc_modules/test_channels.py
macos-test-heir:
if: ${{ false }}

name: Test (macos/HeirCC)
runs-on: macos-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/komodo_win_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
path: ./komodod_win.zip

windows-test-baserpc:
if: ${{ false }}

name: Test (Win/BasicRPC)
needs: windows-build
Expand Down Expand Up @@ -103,6 +104,7 @@ jobs:
cd qa\pytest_komodo
start_ci.bat basic
windows-test-dice-faucet-tok-rewCC:
if: ${{ false }}

name: Test (Win/Dice Faucet Token Rewards)
runs-on: windows-latest
Expand Down Expand Up @@ -133,6 +135,7 @@ jobs:
cd qa\pytest_komodo
start_ci.bat cc_modules\test_dice.py cc_modules\test_faucet.py cc_modules\test_token.py cc_modules\test_rewards.py
windows-test-oracles-cc:
if: ${{ false }}

name: Test (Win/OraclesCC)
runs-on: windows-latest
Expand Down Expand Up @@ -163,6 +166,7 @@ jobs:
cd qa\pytest_komodo
start_ci.bat cc_modules\test_oracles.py
windows-test-heir-cc:
if: ${{ false }}

name: Test (Win/HeirCC)
runs-on: windows-latest
Expand Down Expand Up @@ -193,6 +197,7 @@ jobs:
cd qa\pytest_komodo
start_ci.bat cc_modules\test_heir.py
windows-test-channels-cc:
if: ${{ false }}

name: Test (Win/ChannelsCC)
runs-on: windows-latest
Expand Down
31 changes: 18 additions & 13 deletions .github/workflows/komodod_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- beta
- dev
- research

- master

jobs:

Expand All @@ -33,19 +33,22 @@ jobs:
uses: actions/checkout@v2

- name: Install deps (Linux)
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get update
sudo apt-get install software-properties-common -y
sudo apt-get update # prevents repo404 errors on apt-remove below
sudo apt-get remove php* msodbcsql17 mysql* powershell dotn*
sudo apt-get update
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -y
sudo ACCEPT_EULA=Y apt-get upgrade -y
sudo apt-get install -q \
curl \
python3 \
python3-dev \
python3-setuptools \
python3-pip \
libcurl4-openssl-dev \
libssl-dev -y
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool \
libncurses-dev unzip wget bsdmainutils automake libboost-all-dev libssl-dev \
libprotobuf-dev protobuf-compiler libqrencode-dev libdb++-dev ntp ntpdate nano \
curl libevent-dev libcurl4-gnutls-dev cmake clang \
libsodium-dev ncurses-dev git python3 python3-zmq zlib1g-dev libstdc++6 -y
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
- name: Build (Linux)
if: runner.os == 'Linux'
run: |
Expand All @@ -64,12 +67,12 @@ jobs:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

- name: Build container
run: docker build -f Dockerfile.release -t komodoofficial/komodo:cd_release_${{ steps.shortify_commit.outputs.sha_short }}_${{ steps.extract_branch.outputs.branch }} .
run: docker build -f Dockerfile.release -t ${{ secrets.DOCKER_ORG }}/komodo:cd_release_${{ steps.shortify_commit.outputs.sha_short }}_${{ steps.extract_branch.outputs.branch }} .

- name: Push to docker hub
uses: actions-hub/docker@master
with:
args: push komodoofficial/komodo:cd_release_${{ steps.shortify_commit.outputs.sha_short }}_${{ steps.extract_branch.outputs.branch }}
args: push ${{ secrets.DOCKER_ORG }}/komodo:cd_release_${{ steps.shortify_commit.outputs.sha_short }}_${{ steps.extract_branch.outputs.branch }}

osx-build:
name: OSX Build
Expand All @@ -78,6 +81,8 @@ jobs:
- uses: actions/checkout@v2
- name: Install deps (macOS)
run: |
rm '/usr/local/bin/2to3'
brew unlink node
brew update
brew upgrade || true
brew tap discoteq/discoteq; brew install flock
Expand Down Expand Up @@ -135,7 +140,7 @@ jobs:

publish-release:
name: Publishing CD releases
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [linux-build, osx-build, windows-build]
steps:
- name: Download komodo-linux.zip
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM ubuntu:16.04
MAINTAINER Mihail Fedorov <kolo@komodoplatform.com>
FROM ubuntu:20.04
LABEL maintainer="smk762 <smk@komodoplatform.com>"

RUN apt-get -y update && \
apt-get -y upgrade && \
Expand Down
20 changes: 15 additions & 5 deletions Dockerfile.release
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
FROM ubuntu:20.04
RUN \
apt-get update &&\
apt-get install -y libgomp1
CMD mkdir /komodo
LABEL maintainer="[email protected]"
RUN \
export ACCEPT_EULA=Y && \
export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install software-properties-common -y && \
add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
apt-get update && \
apt-get upgrade -y && \
apt-get dist-upgrade -y && \
apt-get install libgomp1 libstdc++6 binutils -y
RUN mkdir /komodo
WORKDIR /komodo
COPY src/komodod src/komodo-cli ./
CMD ./komodod
RUN ln -sf /komodo/komodod /usr/bin/komodod && \
ln -sf /komodo/komodo-cli /usr/bin/komodo-cli
CMD ./komodod
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 0)
define(_CLIENT_VERSION_MINOR, 8)
define(_CLIENT_VERSION_REVISION, 0)
define(_CLIENT_VERSION_REVISION, 1)
define(_CLIENT_VERSION_BUILD, 0)
define(_ZC_BUILD_VAL, m4_if(m4_eval(_CLIENT_VERSION_BUILD < 25), 1, m4_incr(_CLIENT_VERSION_BUILD), m4_eval(_CLIENT_VERSION_BUILD < 50), 1, m4_eval(_CLIENT_VERSION_BUILD - 24), m4_eval(_CLIENT_VERSION_BUILD == 50), 1, , m4_eval(_CLIENT_VERSION_BUILD - 50)))
define(_CLIENT_VERSION_SUFFIX, m4_if(m4_eval(_CLIENT_VERSION_BUILD < 25), 1, _CLIENT_VERSION_REVISION-beta$1, m4_eval(_CLIENT_VERSION_BUILD < 50), 1, _CLIENT_VERSION_REVISION-rc$1, m4_eval(_CLIENT_VERSION_BUILD == 50), 1, _CLIENT_VERSION_REVISION, _CLIENT_VERSION_REVISION-$1)))
Expand Down
38 changes: 38 additions & 0 deletions contrib/devtools/update-rust-hashes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env bash

export LC_ALL=C

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
RUST_PACKAGE="$SCRIPT_DIR/../../depends/packages/rust.mk"

RUST_VERSION=$( grep -oP "_version=\K.*" $RUST_PACKAGE )

update_hash() {
url="https://static.rust-lang.org/dist/$1-$RUST_VERSION-$2.tar.gz"
echo "Fetching $url"
hash=$( curl $url | sha256sum | awk '{print $1}' )
sed -i "/\$(package)_$3_$4=/c\\\$(package)_$3_$4=$hash" $RUST_PACKAGE
}

update_rust_hash() {
update_hash rust $1 sha256_hash $2
}

update_stdlib_hash() {
update_hash rust-std $1 rust_std_sha256_hash $1
}

# For native targets
# update_rust_hash RUST_TARGET MAKEFILE_PACKAGE_IDENTIFIER
update_rust_hash aarch64-unknown-linux-gnu aarch64_linux
update_rust_hash x86_64-apple-darwin darwin
update_rust_hash x86_64-unknown-linux-gnu linux
update_rust_hash x86_64-unknown-freebsd freebsd
update_rust_hash x86_64-pc-windows-gnu mingw32

# For cross-compilation targets
# update_stdlib_hash RUST_TARGET
# update_stdlib_hash aarch64-unknown-linux-gnu
# update_stdlib_hash x86_64-apple-darwin
# update_stdlib_hash x86_64-pc-windows-gnu
# update_stdlib_hash x86_64-unknown-freebsd
16 changes: 8 additions & 8 deletions depends/packages/libcurl.mk
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
package=libcurl
$(package)_version=7.76.1
$(package)_version=8.4.0
$(package)_dependencies=openssl
$(package)_download_path=https://curl.haxx.se/download
$(package)_file_name=curl-$($(package)_version).tar.gz
$(package)_sha256_hash=5f85c4d891ccb14d6c3c701da3010c91c6570c3419391d485d95235253d837d7
$(package)_config_opts_linux=--disable-shared --enable-static --prefix=$(host_prefix) --host=x86_64-unknown-linux-gnu
$(package)_config_opts_mingw32=--enable-mingw --disable-shared --enable-static --prefix=$(host_prefix) --host=x86_64-w64-mingw32
$(package)_config_opts_darwin=--disable-shared --enable-static --prefix=$(host_prefix)
$(package)_cflags_darwin=-mmacosx-version-min=10.9
$(package)_sha256_hash=816e41809c043ff285e8c0f06a75a1fa250211bbfb2dc0a037eeef39f1a9e427
$(package)_config_opts=--with-openssl --disable-shared --enable-static --prefix=$(host_prefix)
$(package)_config_opts_linux=--host=x86_64-unknown-linux-gnu
$(package)_config_opts_mingw32=--enable-mingw --host=x86_64-w64-mingw32
$(package)_cflags_darwin=-mmacosx-version-min=$(OSX_MIN_VERSION)
$(package)_conf_tool=./configure

ifeq ($(build_os),darwin)
define $(package)_set_vars
$(package)_build_env=MACOSX_DEPLOYMENT_TARGET="10.9"
$(package)_build_env=MACOSX_DEPLOYMENT_TARGET="$(OSX_MIN_VERSION)"
endef
endif

Expand All @@ -32,7 +32,7 @@ endef

ifeq ($(build_os),darwin)
define $(package)_build_cmds
$(MAKE) CPPFLAGS="-I$(host_prefix)/include -fPIC" CFLAGS='-mmacosx-version-min=10.9'
$(MAKE) CPPFLAGS="-I$(host_prefix)/include -fPIC" CFLAGS="-mmacosx-version-min=$(OSX_MIN_VERSION)"
endef
else
define $(package)_build_cmds
Expand Down
2 changes: 1 addition & 1 deletion depends/packages/librustzcash.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $(package)_dependencies=rust $(rust_crates)
$(package)_patches=cargo.config 0001-Start-using-cargo-clippy-for-CI.patch remove-dev-dependencies.diff

ifeq ($(host_os),mingw32)
$(package)_library_file=target/x86_64-pc-windows-gnu/release/rustzcash.lib
$(package)_library_file=target/x86_64-pc-windows-gnu/release/librustzcash.a
else
$(package)_library_file=target/release/librustzcash.a
endif
Expand Down
Loading

0 comments on commit d9144d0

Please sign in to comment.