Workaround fix for sending tx via node #50
Workflow file for this 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
name: Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build-windows: | |
name: Windows | |
runs-on: windows-2019 | |
env: | |
BOOST_ROOT: C:\thirdparties\boost-1.72.0 | |
steps: | |
- uses: actions/checkout@master | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.ref }} | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v1.1 | |
- name: Install OpenSSL | |
run: choco install openssl | |
- name: Install Boost | |
shell: powershell | |
run: | | |
$Url = "https://sourceforge.net/projects/boost/files/boost-binaries/1.72.0/boost_1_72_0-msvc-14.2-64.exe" | |
(New-Object System.Net.WebClient).DownloadFile($Url, "$env:TEMP\boost-installer.exe") | |
Start-Process -Wait -FilePath "$env:TEMP\boost-installer.exe" "/SILENT","/SP-","/SUPPRESSMSGBOXES","/DIR=$env:BOOST_ROOT" | |
- name: Build | |
shell: powershell | |
id: build | |
run: | | |
$build_folder = "build" | |
$krb_ver = "${{ github.ref }}" -replace 'refs/tags/' | |
$release_name = "Karbo-cli-win64-$krb_ver" | |
mkdir "$build_folder" | |
cd "$build_folder" | |
cmake -G "Visual Studio 16 2019" -A x64 -DBOOST_ROOT="$env:BOOST_ROOT" -DBOOST_INCLUDE_DIRS="$env:BOOST_ROOT/include" .. | |
msbuild Karbowanec.sln /p:Configuration=Release /m | |
cd src\Release | |
Compress-Archive -Path *.exe -DestinationPath "$release_name.zip" | |
$sha256 = (Get-FileHash "$release_name.zip").Hash | |
$asset_path = "./$build_folder/src/Release/$release_name.zip" | |
echo "sha256=${sha256}" >> $env:GITHUB_OUTPUT | |
echo "release_name=${release_name}.zip" >> $env:GITHUB_OUTPUT | |
echo "asset_path=${asset_path}" >> $env:GITHUB_OUTPUT | |
echo "krb_ver=${krb_ver}" >> $env:GITHUB_OUTPUT | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: ${{ steps.build.outputs.asset_path }} | |
name: Karbo CLI Suite ${{ steps.build.outputs.krb_ver }} | |
body: | | |
[Download for Windows](../../releases/download/${{ steps.build.outputs.krb_ver }}/${{ steps.build.outputs.release_name }}) `SHA256: ${{ steps.build.outputs.sha256 }}` | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
build-macos: | |
name: macOS | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@master | |
with: | |
fetch-depth: 0 | |
- name: Build | |
id: build | |
run: | | |
build_folder="build/" | |
krb_ver=$(echo ${{ github.ref }} | sed 's|refs/tags/||') | |
release_name="Karbo-cli-macOS-$krb_ver" | |
brew install --force openssl boost gcc | |
brew link openssl boost --force | |
mkdir "$build_folder" | |
cd "$build_folder" | |
cmake -DCMAKE_C_FLAGS="-mmacosx-version-min=10.12" -DCMAKE_CXX_FLAGS="-mmacosx-version-min=10.12" -DOPENSSL_USE_STATIC_LIBS=ON .. | |
make | |
mkdir "$release_name" | |
exeFiles=() | |
for f in src/*; do [[ -x $f && -f $f ]] && strip "$f" && exeFiles+=( "$f" ); done | |
strip "${exeFiles[@]}" | |
cp "${exeFiles[@]}" "$release_name/" | |
zip -r "$release_name".zip "$release_name" | |
sha256=$(shasum -a 256 "$release_name".zip | awk '{print toupper($1)}') | |
asset_path="./$build_folder$release_name.zip" | |
echo "sha256=${sha256}" >> $GITHUB_OUTPUT | |
echo "release_name=${release_name}.zip" >> $GITHUB_OUTPUT | |
echo "asset_path=${asset_path}" >> $GITHUB_OUTPUT | |
echo "krb_ver=${krb_ver}" >> $GITHUB_OUTPUT | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: ${{ steps.build.outputs.asset_path }} | |
name: Karbo CLI Suite ${{ steps.build.outputs.krb_ver }} | |
body: | | |
[Download for macOS](../../releases/download/${{ steps.build.outputs.krb_ver }}/${{ steps.build.outputs.release_name }}) `SHA256: ${{ steps.build.outputs.sha256 }}` | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
build-ubuntu22: | |
name: Ubuntu 22.04 | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@master | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.ref }} | |
- name: Build | |
id: build | |
run: | | |
sudo apt-get update && sudo apt-get install -y libboost-all-dev | |
build_folder="build/release" | |
krb_ver=$(echo "$GITHUB_REF" | sed 's|refs/tags/||') | |
release_name=Karbo-cli-ubuntu22.04-"$krb_ver" | |
mkdir -p "$build_folder" | |
cd "$build_folder" | |
cmake -D ARCH=default -D CMAKE_BUILD_TYPE=Release -D CMAKE_POSITION_INDEPENDENT_CODE:BOOL=true -D BOOST_IGNORE_SYSTEM_PATHS_DEFAULT=ON -D BOOST_ROOT=/usr ../.. | |
make | |
cd src | |
exeFiles=() | |
for f in ./*; do [[ -x $f && -f $f ]] && exeFiles+=( "$f" ); done | |
strip "${exeFiles[@]}" | |
tar -czf "$release_name".tar.gz "${exeFiles[@]}" | |
mv "$release_name".tar.gz ../ | |
cd .. | |
sha256=$(shasum -a 256 "$release_name".tar.gz | awk '{print toupper($1)}') | |
asset_path="./$build_folder/$release_name.tar.gz" | |
echo "sha256=${sha256}" >> $GITHUB_OUTPUT | |
echo "release_name=${release_name}.tar.gz" >> $GITHUB_OUTPUT | |
echo "asset_path=${asset_path}" >> $GITHUB_OUTPUT | |
echo "krb_ver=${krb_ver}" >> $GITHUB_OUTPUT | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: ${{ steps.build.outputs.asset_path }} | |
name: Karbo CLI Suite ${{ steps.build.outputs.krb_ver }} | |
body: | | |
[Download for Ubuntu 22.04](../../releases/download/${{ steps.build.outputs.krb_ver }}/${{ steps.build.outputs.release_name }}) `SHA256: ${{ steps.build.outputs.sha256 }}` | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
build-ubuntu20: | |
name: Ubuntu 20.04 | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@master | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.ref }} | |
- name: Build | |
id: build | |
run: | | |
sudo apt-get update && sudo apt-get install -y libboost-all-dev | |
build_folder="build/release" | |
krb_ver=$(echo "$GITHUB_REF" | sed 's|refs/tags/||') | |
release_name=Karbo-cli-ubuntu20.04-"$krb_ver" | |
mkdir -p "$build_folder" | |
cd "$build_folder" | |
cmake -D ARCH=default -D CMAKE_BUILD_TYPE=Release -D CMAKE_POSITION_INDEPENDENT_CODE:BOOL=true -D BOOST_IGNORE_SYSTEM_PATHS_DEFAULT=ON -D BOOST_ROOT=/usr ../.. | |
make | |
cd src | |
exeFiles=() | |
for f in ./*; do [[ -x $f && -f $f ]] && exeFiles+=( "$f" ); done | |
strip "${exeFiles[@]}" | |
tar -czf "$release_name".tar.gz "${exeFiles[@]}" | |
mv "$release_name".tar.gz ../ | |
cd .. | |
sha256=$(shasum -a 256 "$release_name".tar.gz | awk '{print toupper($1)}') | |
asset_path="./$build_folder/$release_name.tar.gz" | |
echo "sha256=${sha256}" >> $GITHUB_OUTPUT | |
echo "release_name=${release_name}.tar.gz" >> $GITHUB_OUTPUT | |
echo "asset_path=${asset_path}" >> $GITHUB_OUTPUT | |
echo "krb_ver=${krb_ver}" >> $GITHUB_OUTPUT | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: ${{ steps.build.outputs.asset_path }} | |
name: Karbo CLI Suite ${{ steps.build.outputs.krb_ver }} | |
body: | | |
[Download for Ubuntu 20.04](../../releases/download/${{ steps.build.outputs.krb_ver }}/${{ steps.build.outputs.release_name }}) `SHA256: ${{ steps.build.outputs.sha256 }}` | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |