Skip to content

Commit

Permalink
Merge pull request #177 from ConcealNetwork/6.2.1
Browse files Browse the repository at this point in the history
version 6.2.1
  • Loading branch information
cryptokatz authored Sep 1, 2020
2 parents aa6b616 + efde8c4 commit e456e94
Show file tree
Hide file tree
Showing 34 changed files with 11,897 additions and 7,054 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/arm32.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: ARM

on:
push:
tags:
- '*'

jobs:
build-arm:
name: ARM
runs-on: ARM
steps:
- uses: actions/checkout@master

- name: Build
id: build
run: |
BOOST_ROOT=
build_folder="build/debug"
ccx_ver=$(echo "$GITHUB_REF" | sed 's|refs/tags/||')
ccx_ver_folder=$(echo $ccx_ver | sed 's/\.//g')
release_name=ccx-cli-arm32-v"$ccx_ver"
mkdir -p "$build_folder"
cd "$build_folder"
cmake ../..
make -j4
mkdir -p "$release_name/$ccx_ver_folder"
exeFiles=()
for f in src/*; do [[ -x $f && -f $f ]] && exeFiles+=( "$f" ); done
cp "${exeFiles[@]}" "$release_name/$ccx_ver_folder"
cd "$release_name"
tar -czf "$release_name".tar.gz "$ccx_ver_folder"
sha256=$(shasum -a 256 "$release_name".tar.gz | awk '{print toupper($1)}')
asset_path="./$build_folder/$release_name/$release_name.tar.gz"
echo "::set-output name=sha256::${sha256}"
echo "::set-output name=release_name::${release_name}.tar.gz"
echo "::set-output name=asset_path::${asset_path}"
echo "::set-output name=ccx_ver::${ccx_ver}"
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: ${{ steps.build.outputs.asset_path }}
name: Conceal Core CLI v${{ steps.build.outputs.ccx_ver }}
body: |
**${{ steps.build.outputs.release_name }}**
${{ steps.build.outputs.sha256 }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49 changes: 49 additions & 0 deletions .github/workflows/arm64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: ARM64

on:
push:
tags:
- '*'

jobs:
build-arm64:
name: ARM64
runs-on: ARM64
steps:
- uses: actions/checkout@master

- name: Build
id: build
run: |
BOOST_ROOT=
build_folder="build/debug"
ccx_ver=$(echo "$GITHUB_REF" | sed 's|refs/tags/||')
ccx_ver_folder=$(echo $ccx_ver | sed 's/\.//g')
release_name=ccx-cli-arm64-v"$ccx_ver"
mkdir -p "$build_folder"
cd "$build_folder"
cmake ../..
make -j4
mkdir -p "$release_name/$ccx_ver_folder"
exeFiles=()
for f in src/*; do [[ -x $f && -f $f ]] && exeFiles+=( "$f" ); done
cp "${exeFiles[@]}" "$release_name/$ccx_ver_folder"
cd "$release_name"
tar -czf "$release_name".tar.gz "$ccx_ver_folder"
sha256=$(shasum -a 256 "$release_name".tar.gz | awk '{print toupper($1)}')
asset_path="./$build_folder/$release_name/$release_name.tar.gz"
echo "::set-output name=sha256::${sha256}"
echo "::set-output name=release_name::${release_name}.tar.gz"
echo "::set-output name=asset_path::${asset_path}"
echo "::set-output name=ccx_ver::${ccx_ver}"
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: ${{ steps.build.outputs.asset_path }}
name: Conceal Core CLI v${{ steps.build.outputs.ccx_ver }}
body: |
**${{ steps.build.outputs.release_name }}**
${{ steps.build.outputs.sha256 }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
108 changes: 107 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,47 @@ jobs:
path: ${{ steps.build.outputs.artifact_path }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


build-ubuntu20:
name: Ubuntu 20.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master

- name: Build
id: build
run: |
sudo fallocate -l 6G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
BOOST_ROOT=
sudo apt-get purge '*boost*'
sudo apt install -y libboost-all-dev
build_folder="build/debug"
ccx_ver=${GITHUB_SHA::7}
ccx_ver_folder=$(echo $ccx_ver | sed 's/\.//g')
release_name=ccx-cli-ubuntu-2004-v"$ccx_ver"
mkdir -p "$build_folder"
cd "$build_folder"
cmake ../..
make -j2
mkdir -p "$release_name"
exeFiles=()
for f in src/*; do [[ -x $f && -f $f ]] && exeFiles+=( "$f" ); done
strip "${exeFiles[@]}"
cp "${exeFiles[@]}" "$release_name/"
echo "::set-output name=release_name::${release_name}.zip"
echo "::set-output name=artifact_path::$build_folder/$release_name"
- name: Upload To GH Artifacts
uses: actions/upload-artifact@v1.0.0
with:
name: ${{ steps.build.outputs.release_name }}
path: ${{ steps.build.outputs.artifact_path }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-macos:
name: macOS
runs-on: macos-latest
Expand Down Expand Up @@ -162,3 +202,69 @@ jobs:
path: ${{ steps.build.outputs.artifact_path }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-arm32:
name: ARM
runs-on: ARM
steps:
- uses: actions/checkout@master

- name: Build
id: build
run: |
build_folder="build/debug"
ccx_ver=${GITHUB_SHA::7}
ccx_ver_folder=$(echo $ccx_ver | sed 's/\.//g')
release_name=ccx-cli-arm32-v"$ccx_ver"
mkdir -p "$build_folder"
cd "$build_folder"
cmake ../..
make -j4
mkdir -p "$release_name"
exeFiles=()
for f in src/*; do [[ -x $f && -f $f ]] && exeFiles+=( "$f" ); done
strip "${exeFiles[@]}"
cp "${exeFiles[@]}" "$release_name/"
echo "::set-output name=release_name::${release_name}.zip"
echo "::set-output name=artifact_path::$build_folder/$release_name"
- name: Upload To GH Artifacts
uses: actions/upload-artifact@v1.0.0
with:
name: ${{ steps.build.outputs.release_name }}
path: ${{ steps.build.outputs.artifact_path }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-arm64:
name: ARM64
runs-on: ARM64
steps:
- uses: actions/checkout@master

- name: Build
id: build
run: |
build_folder="build/debug"
ccx_ver=${GITHUB_SHA::7}
ccx_ver_folder=$(echo $ccx_ver | sed 's/\.//g')
release_name=ccx-cli-arm64-v"$ccx_ver"
mkdir -p "$build_folder"
cd "$build_folder"
cmake ../..
make -j4
mkdir -p "$release_name"
exeFiles=()
for f in src/*; do [[ -x $f && -f $f ]] && exeFiles+=( "$f" ); done
strip "${exeFiles[@]}"
cp "${exeFiles[@]}" "$release_name/"
echo "::set-output name=release_name::${release_name}.zip"
echo "::set-output name=artifact_path::$build_folder/$release_name"
- name: Upload To GH Artifacts
uses: actions/upload-artifact@v1.0.0
with:
name: ${{ steps.build.outputs.release_name }}
path: ${{ steps.build.outputs.artifact_path }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu18.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- '*'

jobs:
build-ubuntu16:
build-ubuntu18:
name: Ubuntu 18.04
runs-on: ubuntu-18.04
steps:
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/ubuntu20.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Ubuntu 20.04

on:
push:
tags:
- '*'

jobs:
build-ubuntu20:
name: Ubuntu 20.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master

- name: Build
id: build
run: |
sudo fallocate -l 6G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
BOOST_ROOT=
sudo apt-get purge '*boost*'
sudo apt install -y libboost-all-dev
build_folder="build/debug"
ccx_ver=$(echo "$GITHUB_REF" | sed 's|refs/tags/||')
ccx_ver_folder=$(echo $ccx_ver | sed 's/\.//g')
release_name=ccx-cli-ubuntu-2004-v"$ccx_ver"
mkdir -p "$build_folder"
cd "$build_folder"
cmake ../..
make -j2
mkdir -p "$release_name/$ccx_ver_folder"
exeFiles=()
for f in src/*; do [[ -x $f && -f $f ]] && exeFiles+=( "$f" ); done
cp "${exeFiles[@]}" "$release_name/$ccx_ver_folder"
cd "$release_name"
tar -czf "$release_name".tar.gz "$ccx_ver_folder"
sha256=$(shasum -a 256 "$release_name".tar.gz | awk '{print toupper($1)}')
asset_path="./$build_folder/$release_name/$release_name.tar.gz"
echo "::set-output name=sha256::${sha256}"
echo "::set-output name=release_name::${release_name}.tar.gz"
echo "::set-output name=asset_path::${asset_path}"
echo "::set-output name=ccx_ver::${ccx_ver}"
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: ${{ steps.build.outputs.asset_path }}
name: Conceal Core CLI v${{ steps.build.outputs.ccx_ver }}
body: |
**${{ steps.build.outputs.release_name }}**
${{ steps.build.outputs.sha256 }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit e456e94

Please sign in to comment.