Skip to content

Commit

Permalink
Fix automated Linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
aivve committed Mar 23, 2020
1 parent d96a381 commit 3561465
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ jobs:
- name: Build
id: build
run: |
BOOST_ROOT=
sudo apt update -y
sudo apt install -y qt5-default qttools5-dev qttools5-dev-tools libboost-all-dev
build_folder="build/release"
Expand All @@ -162,7 +161,7 @@ jobs:
git clone https://github.com/seredat/karbowanec.git cryptonote
mkdir -p "$build_folder"
cd "$build_folder"
cmake ../..
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
cpack
tar -czf "$release_name".tar.gz *.deb
Expand Down Expand Up @@ -193,9 +192,9 @@ jobs:
- name: Build
id: build
run: |
BOOST_ROOT=
sudo apt-get purge '*boost*'
sudo apt update -y
sudo apt install -y qt5-default qttools5-dev qttools5-dev-tools libboost-all-dev
sudo apt install -y qt5-default qttools5-dev qttools5-dev-tools libboost1.62-all-dev
build_folder="build/release"
krb_ver=$(echo "$GITHUB_REF" | sed 's|refs/tags/||')
release_name=Karbo-wallet-ubuntu-18.04-"$krb_ver"
Expand All @@ -204,9 +203,10 @@ jobs:
git clone https://github.com/seredat/karbowanec.git cryptonote
mkdir -p "$build_folder"
cd "$build_folder"
cmake ../..
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
tar -czf "$release_name".tar.gz "$app_name"
cpack
tar -czf "$release_name".tar.gz *.deb
sha256=$(shasum -a 256 "$release_name".tar.gz | awk '{print toupper($1)}')
asset_path="./$build_folder/$release_name".tar.gz
echo "::set-output name=sha256::${sha256}"
Expand Down

0 comments on commit 3561465

Please sign in to comment.