Skip to content

Commit

Permalink
Update GA workflow scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
aivve committed Jan 2, 2022
1 parent a6e755f commit b463ea1
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 23 deletions.
38 changes: 26 additions & 12 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,23 @@ jobs:
with:
fetch-depth: 0

- name: Setup MSBuild.exe
uses: warrenbuckley/Setup-MSBuild@v1
- name: Add msbuild to PATH
uses: microsoft/[email protected]

- name: Install Boost
shell: cmd
run: |
choco install wget --no-progress
wget -nv -O boost-installer.exe "https://sourceforge.net/projects/boost/files/boost-binaries/1.72.0/boost_1_72_0-msvc-14.2-64.exe/download"
boost-installer.exe /dir=%BOOST_ROOT% /sp- /verysilent /suppressmsgboxes /norestart
- name: Install OpenSSL
run: choco install openssl

- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: '5.14.0'
version: '5.15.1'
host: 'windows'
target: 'desktop'
modules: 'qttools5'
Expand All @@ -36,8 +43,8 @@ jobs:
shell: powershell
id: build
env:
BOOST_ROOT: ${{ env.BOOST_ROOT }}
GIT_REDIRECT_STDERR: '2>&1'
VCINSTALLDIR: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\'
run: |
$build_folder = "build"
$krb_ver = git describe --tags --abbrev=0
Expand All @@ -48,7 +55,7 @@ jobs:
git clone https://github.com/seredat/karbowanec.git cryptonote --quiet
mkdir "$build_folder"
cd "$build_folder"
Start-Process cmake -ArgumentList "-DBOOST_ROOT=""$env:BOOST_ROOT_1_69_0"" -G ""Visual Studio 16 2019"" -A x64",".." -NoNewWindow -Wait
Start-Process cmake -ArgumentList "-DBOOST_ROOT=""$env:BOOST_ROOT"" -DBOOST_INCLUDE_DIRS=""$env:BOOST_ROOT/include"" -G ""Visual Studio 16 2019"" -A x64",".." -NoNewWindow -Wait
Start-Process msbuild -ArgumentList "KarboLite.sln","/p:Configuration=Release" -NoNewWindow -Wait
$build_path = "./$build_folder"
echo "::set-output name=build_path::${build_path}"
Expand Down Expand Up @@ -99,18 +106,23 @@ jobs:
with:
fetch-depth: 0

- name: Setup Xcode
uses: maxim-lobanov/[email protected]
with:
xcode-version: '10'

- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: '5.12.0'
version: '5.15.2'
modules: 'qttools5'
install-deps: 'true'

- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Install other deps
run: |
brew install gcc boost openssl
brew link boost --force
- name: Find Tag
id: tagger
uses: jimschubert/query-tag-action@v1
Expand All @@ -133,7 +145,7 @@ jobs:
git clone https://github.com/seredat/karbowanec.git cryptonote
mkdir -p "$build_folder"
cd "$build_folder"
cmake -DCMAKE_C_FLAGS="-mmacosx-version-min=10.12" -DCMAKE_CXX_FLAGS="-mmacosx-version-min=10.12" -D CMAKE_BUILD_TYPE=Release ../..
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 ../..
make
macdeployqt "$app_name"
cpack
Expand All @@ -144,6 +156,8 @@ jobs:
echo "::set-output name=release_name::${release_name}.zip"
echo "::set-output name=asset_path::${asset_path}"
echo "::set-output name=krb_ver::${krb_ver}"
env:
MACOSX_DEPLOYMENT_TARGET: '10.12'

- name: Create Artifact
uses: actions/[email protected]
Expand Down
36 changes: 25 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,23 @@ jobs:
with:
fetch-depth: 0

- name: Setup MSBuild.exe
uses: warrenbuckley/Setup-MSBuild@v1
- name: Add msbuild to PATH
uses: microsoft/[email protected]

- name: Install Boost
shell: cmd
run: |
choco install wget --no-progress
wget -nv -O boost-installer.exe "https://sourceforge.net/projects/boost/files/boost-binaries/1.72.0/boost_1_72_0-msvc-14.2-64.exe/download"
boost-installer.exe /dir=%BOOST_ROOT% /sp- /verysilent /suppressmsgboxes /norestart
- name: Install OpenSSL
run: choco install openssl

- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: '5.14.0'
version: '5.15.2'
host: 'windows'
target: 'desktop'
modules: 'qttools5'
Expand All @@ -33,8 +40,8 @@ jobs:
shell: powershell
id: build
env:
BOOST_ROOT: ${{ env.BOOST_ROOT }}
GIT_REDIRECT_STDERR: '2>&1'
VCINSTALLDIR: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\'
run: |
$build_folder = "build"
$krb_ver = "${{ github.ref }}" -replace '[refs/tags/]'
Expand All @@ -45,7 +52,7 @@ jobs:
git clone https://github.com/seredat/karbowanec.git cryptonote --quiet
mkdir "$build_folder"
cd "$build_folder"
Start-Process cmake -ArgumentList "-DBOOST_ROOT=""$env:BOOST_ROOT_1_69_0"" -G ""Visual Studio 16 2019"" -A x64",".." -NoNewWindow -Wait
Start-Process cmake -ArgumentList "-DBOOST_ROOT=""$env:BOOST_ROOT"" -DBOOST_INCLUDE_DIRS=""$env:BOOST_ROOT/include"" -G ""Visual Studio 16 2019"" -A x64",".." -NoNewWindow -Wait
Start-Process msbuild -ArgumentList "KarboLite.sln","/p:Configuration=Release" -NoNewWindow -Wait
$build_path = "./$build_folder"
echo "::set-output name=build_path::${build_path}"
Expand Down Expand Up @@ -99,18 +106,23 @@ jobs:
with:
fetch-depth: 0

- name: Setup Xcode
uses: maxim-lobanov/[email protected]
with:
xcode-version: '10'

- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: '5.12.0'
version: '5.15.2'
modules: 'qttools5'
install-deps: 'true'

- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Install other deps
run: |
brew install gcc boost openssl
brew link boost --force
- name: Build
id: build
run: |
Expand All @@ -135,6 +147,8 @@ jobs:
echo "::set-output name=release_name::${release_name}.zip"
echo "::set-output name=asset_path::${asset_path}"
echo "::set-output name=krb_ver::${krb_ver}"
env:
MACOSX_DEPLOYMENT_TARGET: '10.12'

- name: Create Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit b463ea1

Please sign in to comment.