Skip to content

Commit

Permalink
Fix GA workflow (cryptonotefoundation#5)
Browse files Browse the repository at this point in the history
Fix version string in test build packages on Linux
Clone Karbo Core as a submodule with the correct branch instead of cloning Karbo Core master
  • Loading branch information
aivve authored Mar 7, 2021
1 parent 6b4f3ea commit 99ea5de
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 24 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
steps:
- uses: actions/checkout@master
with:
submodules: true
fetch-depth: 0
ref: ${{ github.ref }}

Expand Down Expand Up @@ -53,8 +54,6 @@ jobs:
echo "$release_name"
set CMAKE_PREFIX_PATH="$($qt5_cmake)"
$qt5_cmake = "${{ env.Qt5_Dir }}/lib/cmake" -replace '[/]', '\\'
Remove-Item cryptonote -Recurse -ErrorAction Ignore
git clone https://github.com/Karbovanets/karbo cryptonote --quiet
mkdir "$build_folder"
cd "$build_folder"
Start-Process cmake -ArgumentList "-DBOOST_ROOT=""$env:BOOST_ROOT_1_72_0"" -G ""Visual Studio 16 2019"" -A x64 -DARCH=default",".." -NoNewWindow -Wait
Expand Down Expand Up @@ -108,6 +107,7 @@ jobs:
steps:
- uses: actions/checkout@master
with:
submodules: true
fetch-depth: 0
ref: ${{ github.ref }}

Expand Down Expand Up @@ -145,8 +145,6 @@ jobs:
release_name="Karbo-wallet-macOS-$krb_ver"
app_name="KarbowanecWallet.app"
lang_folder="/Contents/Resources/languages"
rm -rf cryptonote
git clone https://github.com/Karbovanets/karbo cryptonote
mkdir -p "$build_folder"
cd "$build_folder"
cmake -D ARCH=default -D CMAKE_C_FLAGS="-mmacosx-version-min=10.12" -D CMAKE_CXX_FLAGS="-mmacosx-version-min=10.12" -D CMAKE_BUILD_TYPE=Release ../..
Expand Down Expand Up @@ -179,6 +177,7 @@ jobs:
steps:
- uses: actions/checkout@master
with:
submodules: true
fetch-depth: 0
ref: ${{ github.ref }}

Expand All @@ -197,11 +196,9 @@ jobs:
sudo apt update -y
sudo apt install -y qt5-default qttools5-dev qttools5-dev-tools libboost-all-dev
build_folder="build/release"
krb_ver="${{ steps.build.outputs.krb_ver }}"
release_name=Karbo-wallet-ubuntu-20.04-"krb_ver"
krb_ver="${{steps.tagger.outputs.tag}}"
release_name=Karbo-wallet-ubuntu-20.04-$krb_ver
app_name="KarbowanecWallet"
rm -rf cryptonote
git clone https://github.com/Karbovanets/karbo cryptonote
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 ../..
Expand Down Expand Up @@ -229,6 +226,7 @@ jobs:
steps:
- uses: actions/checkout@master
with:
submodules: true
fetch-depth: 0
ref: ${{ github.ref }}

Expand All @@ -248,11 +246,9 @@ jobs:
sudo apt update -y
sudo apt install -y qt5-default qttools5-dev qttools5-dev-tools libboost1.62-all-dev
build_folder="build/release"
krb_ver="${{ steps.build.outputs.krb_ver }}"
release_name=Karbo-wallet-ubuntu-18.04-"krb_ver"
krb_ver="${{steps.tagger.outputs.tag}}"
release_name=Karbo-wallet-ubuntu-18.04-$krb_ver
app_name="KarbowanecWallet"
rm -rf cryptonote
git clone https://github.com/Karbovanets/karbo cryptonote
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 ../..
Expand Down
42 changes: 30 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ jobs:
steps:
- uses: actions/checkout@master
with:
submodules: true
fetch-depth: 0
ref: ${{ github.ref }}

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
Expand Down Expand Up @@ -47,8 +49,6 @@ jobs:
$release_name = "Karbo-wallet-win64-$krb_ver"
set CMAKE_PREFIX_PATH="$($qt5_cmake)"
$qt5_cmake = "${{ env.Qt5_Dir }}/lib/cmake" -replace '[/]', '\\'
Remove-Item cryptonote -Recurse -ErrorAction Ignore
git clone https://github.com/Karbovanets/karbo cryptonote --quiet
mkdir "$build_folder"
cd "$build_folder"
Start-Process cmake -ArgumentList "-DBOOST_ROOT=""$env:BOOST_ROOT_1_72_0"" -G ""Visual Studio 16 2019"" -A x64 -DARCH=default",".." -NoNewWindow -Wait
Expand Down Expand Up @@ -123,7 +123,9 @@ jobs:
steps:
- uses: actions/checkout@master
with:
submodules: true
fetch-depth: 0
ref: ${{ github.ref }}

- name: Install Qt
uses: jurplel/install-qt-action@v2
Expand Down Expand Up @@ -159,8 +161,6 @@ jobs:
release_name="Karbo-wallet-macOS-$krb_ver"
app_name="KarbowanecWallet.app"
lang_folder="/Contents/Resources/languages"
rm -rf cryptonote
git clone https://github.com/Karbovanets/karbo cryptonote
mkdir -p "$build_folder"
cd "$build_folder"
cmake -D ARCH=default -D CMAKE_C_FLAGS="-mmacosx-version-min=10.12" -D CMAKE_CXX_FLAGS="-mmacosx-version-min=10.12" -D CMAKE_BUILD_TYPE=Release ../..
Expand Down Expand Up @@ -196,19 +196,28 @@ jobs:
steps:
- uses: actions/checkout@master
with:
submodules: true
fetch-depth: 0
ref: ${{ github.ref }}

- name: Find Tag
id: tagger
uses: jimschubert/query-tag-action@v1
with:
include: 'v*'
exclude: '*-rc*'
commit-ish: 'HEAD~'
skip-unshallow: 'true'

- name: Build
id: build
run: |
sudo apt update -y
sudo apt install -y qt5-default qttools5-dev qttools5-dev-tools libboost-all-dev
build_folder="build/release"
krb_ver=$(echo "$GITHUB_REF" | sed 's|refs/tags/||')
release_name=Karbo-wallet-ubuntu-20.04-"$krb_ver"
krb_ver="${{steps.tagger.outputs.tag}}"
release_name=Karbo-wallet-ubuntu-20.04-$krb_ver
app_name="KarbowanecWallet"
rm -rf cryptonote
git clone https://github.com/Karbovanets/karbo cryptonote
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 ../..
Expand Down Expand Up @@ -239,7 +248,18 @@ jobs:
steps:
- uses: actions/checkout@master
with:
submodules: true
fetch-depth: 0
ref: ${{ github.ref }}

- name: Find Tag
id: tagger
uses: jimschubert/query-tag-action@v1
with:
include: 'v*'
exclude: '*-rc*'
commit-ish: 'HEAD~'
skip-unshallow: 'true'

- name: Build
id: build
Expand All @@ -248,11 +268,9 @@ jobs:
sudo apt update -y
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"
krb_ver="${{steps.tagger.outputs.tag}}"
release_name=Karbo-wallet-ubuntu-18.04-$krb_ver
app_name="KarbowanecWallet"
rm -rf cryptonote
git clone https://github.com/Karbovanets/karbo cryptonote
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 ../..
Expand Down

0 comments on commit 99ea5de

Please sign in to comment.