-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into enhancement/SKALED-1900-release-build
- Loading branch information
Showing
19 changed files
with
271 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Build and test skale-consensus | |
on: [push] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
@@ -24,9 +24,9 @@ jobs: | |
- name: Free disk space | ||
run: | | ||
sudo apt-get remove -yq cmake libjsoncpp-dev aria2 ansible azure-cli shellcheck rpm xorriso zsync \ | ||
clang-6.0 lldb-6.0 lld-6.0 clang-format-6.0 clang-8 lldb-8 lld-8 clang-format-8 \ | ||
clang-9 lldb-9 lld-9 clangd-9 clang-format-9 dotnet-sdk-3.0 dotnet-sdk-3.1=3.1.101-1 \ | ||
esl-erlang firefox g++-8 g++-9 gfortran-8 gfortran-9 google-chrome-stable \ | ||
clang-6.0 lldb-6.0 lld-6.0 clang-8 lldb-8 lld-8 \ | ||
clang-9 lldb-9 lld-9 clangd-9 clang-format-14 dotnet-sdk-3.0 dotnet-sdk-3.1=3.1.101-1 \ | ||
esl-erlang firefox g++-11 g++-11 gfortran-8 gfortran-9 google-chrome-stable \ | ||
|| true >/dev/null 2>&1; | ||
- name: Free more disk space | ||
|
@@ -73,12 +73,18 @@ jobs: | |
sudo rm -rf /usr/local/lib/android >/dev/null 2>&1 | ||
sudo docker rmi $(docker image ls -aq) >/dev/null 2>&1 | ||
- name: Install docker compose | ||
run: | | ||
mkdir -p ~/.docker/cli-plugins/ | ||
curl -SL https://github.com/docker/compose/releases/download/v2.3.3/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose | ||
chmod +x ~/.docker/cli-plugins/docker-compose | ||
docker compose version | ||
- name: try docker compose | ||
run: | | ||
# cd sgxwallet/run_sgx_sim && docker-compose pull && docker-compose up -d | ||
cd sgxwallet/run_sgx_sim | ||
echo " --------------------------- stopping sgx wallet ------------------------------------------------------------------------------------------------------ " | ||
docker-compose down | ||
docker compose down | ||
echo " --------------------------- fixing sgx wallets docker config ----------------------------------------------------------------------------------------- " | ||
mv docker-compose.yml docker-compose.yml.old-previous || true | ||
echo "version: '3'" > docker-compose.yml | ||
|
@@ -101,7 +107,7 @@ jobs: | |
echo " restart: unless-stopped" >> docker-compose.yml | ||
echo " command: -s -y -V -d " >> docker-compose.yml | ||
echo " --------------------------- pulling sgx wallet ------------------------------------------------------------------------------------------------------- " | ||
docker-compose pull | ||
docker compose pull | ||
- name: install cmake | ||
run: | | ||
|
@@ -112,25 +118,24 @@ jobs: | |
- name: install packages | ||
run: | | ||
sudo apt-get -y install software-properties-common; sudo apt-add-repository universe; \ | ||
sudo apt-get update; sudo apt-get -y install -y software-properties-common apt-utils libprocps-dev \ | ||
gcc-9 g++-9 valgrind gawk sed libffi-dev ccache libgoogle-perftools-dev flex \ | ||
bison yasm texinfo \ | ||
autotools-dev autogen automake autoconf m4 shtool pkg-config sed gawk yasm nasm \ | ||
python3 python3-pip \ | ||
libtool build-essential \ | ||
libgcrypt20-dev | ||
sudo apt-get update && \ | ||
sudo apt-get install -y build-essential software-properties-common; sudo apt-get update; \ | ||
sudo apt-add-repository universe; \ | ||
sudo apt-get update; sudo apt-get install -y apt-utils libprocps-dev \ | ||
gcc-11 g++-11 valgrind gawk sed libffi-dev ccache libunwind-dev libgoogle-perftools-dev yasm texinfo \ | ||
autotools-dev autogen automake autoconf m4 shtool pkg-config gawk nasm unzip \ | ||
python3 python3-pip libtool libgcrypt20-dev | ||
# python python-pip | ||
# python-is-python3 | ||
- name: Use g++-9 and gcov-9 by default | ||
- name: Use g++-11 and gcov-11 by default | ||
run: | | ||
echo "Updating all needed alternatives" | ||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 9 | ||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9 | ||
sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-9 9 | ||
sudo update-alternatives --install /usr/bin/gcov-dump gcov-dump /usr/bin/gcov-dump-9 9 | ||
sudo update-alternatives --install /usr/bin/gcov-tool gcov-tool /usr/bin/gcov-tool-9 9 | ||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11 | ||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 11 | ||
sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-11 11 | ||
sudo update-alternatives --install /usr/bin/gcov-dump gcov-dump /usr/bin/gcov-dump-11 11 | ||
sudo update-alternatives --install /usr/bin/gcov-tool gcov-tool /usr/bin/gcov-tool-11 11 | ||
echo "Checking alternative for gcc" | ||
which gcc | ||
gcc --version | ||
|
@@ -155,7 +160,7 @@ jobs: | |
message("::set-output name=timestamp::${current_date}") | ||
- name: ccache cache files | ||
uses: actions/cache@v1.1.0 | ||
uses: actions/cache@v4.2.0 | ||
with: | ||
path: .ccache | ||
key: ${ { matrix.config.name } }-ccache-${ { steps.ccache_cache_timestamp.outputs.timestamp } } | ||
|
@@ -168,9 +173,6 @@ jobs: | |
- name: verify jsonrpc has been built | ||
run: ls libBLS/deps/deps_inst/x86_or_x64/include/jsonrpccpp/client.h | ||
|
||
- name: workaround for HUNTER | ||
run: cd .. && mkdir -p "${HOME}"/.hunter/_Base/Download/crc32c/1.0.5/dc7fa8c/ && wget -O "${HOME}"/.hunter/_Base/Download/crc32c/1.0.5/dc7fa8c/hunter-1.0.5.tar.gz https://github.com/hunter-packages/crc32c/archive/refs/tags/hunter-1.0.5.tar.gz | ||
|
||
- name: build consensus | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.