Skip to content

Commit

Permalink
Merge branch 'nogeo' of git://github.com/cipig/atomicDEX-Desktop into…
Browse files Browse the repository at this point in the history
… dev
  • Loading branch information
WebySI committed Nov 23, 2021
2 parents d7054f3 + d5695bd commit c8054c9
Show file tree
Hide file tree
Showing 73 changed files with 5,427 additions and 4,872 deletions.
112 changes: 16 additions & 96 deletions .github/workflows/atomicdex-desktop-ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
name: AtomicDex-Desktop CI

on:
pull_request:
types: [ opened, synchronize, reopened ]
push:
branches:
- master
schedule:
- cron: '0 0 * * 1'
- nogeo

env:
DEX_PROJECT_NAME: "atomicdex-desktop"
Expand All @@ -25,9 +21,7 @@ jobs:
fail-fast: false
matrix:
name: [
ubuntu-qt-5-15-2,
osx-qt-5-15-2,
windows-10-qt-5-15-2
ubuntu-qt-5-15-2
]

include:
Expand All @@ -36,15 +30,15 @@ jobs:
qt: '5.15.2'
type: 'release'

- name: osx-qt-5-15-2
os: macos-latest
qt: '5.15.2'
type: 'release'
# - name: osx-qt-5-15-2
# os: macos-latest
# qt: '5.15.2'
# type: 'release'

- name: windows-10-qt-5-15-2
os: windows-latest
qt: '5.15.2'
type: 'release'
# - name: windows-10-qt-5-15-2
# os: windows-latest
# qt: '5.15.2'
# type: 'release'

#- name: osx-qt-5-15-2-dbg
# os: macos-latest
Expand Down Expand Up @@ -95,8 +89,10 @@ jobs:
- name: Install QT IFW (MacOS)
if: runner.os == 'macOS'
run: |
python3 -m aqt tool mac tools_ifw 4.1.1-202105261132 qt.tools.ifw.41 --outputdir ${{ github.workspace }}/Qt
python3 -m aqt tool mac tools_ifw 4.2.0-0-202111080927 qt.tools.ifw.42 --outputdir ${{ github.workspace }}/Qt
echo "${{ github.workspace }}/Qt/Tools/QtInstallerFramework/4.0/bin" >> $GITHUB_PATH
echo "${{ github.workspace }}/Qt/Tools/QtInstallerFramework/4.1/bin" >> $GITHUB_PATH
echo "${{ github.workspace }}/Qt/Tools/QtInstallerFramework/4.2/bin" >> $GITHUB_PATH
- name: Install QT (Windows)
if: runner.os == 'Windows'
Expand All @@ -117,8 +113,10 @@ jobs:
if: runner.os == 'Windows'
run: |
python -m pip install --upgrade pip
python -m aqt tool windows tools_ifw 4.1.1-202105261131 qt.tools.ifw.41 --outputdir C:/Qt
python -m aqt tool windows tools_ifw 4.2.0-0-202111080926 qt.tools.ifw.42 --outputdir C:/Qt
echo "C:/Qt/Tools/QtInstallerFramework/4.0/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "C:/Qt/Tools/QtInstallerFramework/4.1/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "C:/Qt/Tools/QtInstallerFramework/4.2/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo $env:GITHUB_PATH
echo $env:PATH
Expand Down Expand Up @@ -186,25 +184,6 @@ jobs:
./ci_tools_atomic_dex build release
./ci_tools_atomic_dex bundle release
- name: import code signing certificates (macos)
if: runner.os == 'macOS'
uses: Apple-Actions/import-codesign-certs@v1
with:
keychain: ${{ github.run_id }}
keychain-password: ${{ github.run_id }}
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}

- name: import installer code signing certificates (macos)
if: runner.os == 'macOS'
uses: apple-actions/import-codesign-certs@v1
with:
keychain: ${{ github.run_id }}
keychain-password: ${{ github.run_id }}
create-keychain: false
p12-file-base64: ${{ secrets.CERTIFICATES_INSTALLER_P12 }}
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}

- name: Build AtomicDEX (MacOS)
if: runner.os == 'macOS'
run: |
Expand All @@ -228,65 +207,6 @@ jobs:
$Env:QT_VERSION = "${{ matrix.qt }}"
.\ci_tools_atomic_dex\ci_scripts\windows_script.ps1
- name: Running Tests (Linux)
working-directory: ci_tools_atomic_dex
if: runner.os == 'Linux' && 'KomodoPlatform/atomicDEX-Desktop' == github.repository
run: |
export REPORT_CI_TOKEN=${{ secrets.REPORT_CI_TOKEN_SECRET }}
export ATOMICDEX_TEST_SEED=${{ secrets.ATOMICDEX_TEST_SEED }}
export ATOMICDEX_PASSWORD=${{ secrets.ATOMICDEX_PASSWORD }}
export QT_INSTALL_CMAKE_PATH=${{ github.workspace }}/Qt/${{ matrix.qt }}/gcc_64/lib/cmake
export QT_ROOT=${{ github.workspace }}/Qt/${{ matrix.qt }}
export PATH=${{ github.workspace }}/Qt/${{ matrix.qt }}/gcc_64/bin:$PATH
export PATH=$HOME/.nimble/bin:$PATH
#export CXXFLAGS=-stdlib=libc++
#export LDFLAGS=-stdlib=libc++
export CXX=clang++-12
export CC=clang-12
echo "Running tests"
./ci_tools_atomic_dex tests release
cd build-Release/bin/AntaraAtomicDexTestsAppDir/usr/bin
cat ${{ env.DEX_PROJECT_NAME }}-tests-result.xml
#curl https://report.ci/upload.py --output upload.py
ls
#python upload.py --sha `git rev-parse HEAD` -n "[Doctest Linux]" --include='${{ env.DEX_PROJECT_NAME }}-tests-result.xml' --framework=doctest --merge ".*"
#echo "Uploading tests on Linux finished"
- name: Running Tests (MacOS)
working-directory: ci_tools_atomic_dex
if: runner.os == 'macOS' && 'KomodoPlatform/atomicDEX-Desktop' == github.repository
run: |
export REPORT_CI_TOKEN=${{ secrets.REPORT_CI_TOKEN_SECRET }}
export ATOMICDEX_TEST_SEED=${{ secrets.ATOMICDEX_TEST_SEED }}
export ATOMICDEX_PASSWORD=${{ secrets.ATOMICDEX_PASSWORD }}
export QT_INSTALL_CMAKE_PATH=${{ github.workspace }}/Qt/${{ matrix.qt }}/clang_64/lib/cmake
export QT_ROOT=${{ github.workspace }}/Qt/${{ matrix.qt }}
export CC=clang
export CXX=clang++
echo "Running tests"
#./ci_tools_atomic_dex tests ${{ matrix.type }}
#cd build-${{ matrix.type }}/bin/${{ env.DEX_PROJECT_NAME }}_tests.app/Contents/MacOS
#cat ${{ env.DEX_PROJECT_NAME }}-tests-result.xml
#curl https://report.ci/upload.py --output upload.py
ls
#python upload.py --sha `git rev-parse HEAD` -n "[Doctest MacOS ${{ matrix.type }}]" --include='${{ env.DEX_PROJECT_NAME }}-tests-result.xml' --framework=doctest --merge ".*"
#echo "Uploading tests on OSX finished"
- name: Running Tests (Windows)
shell: powershell
working-directory: ci_tools_atomic_dex
if: runner.os == 'Windows' && 'KomodoPlatform/atomicDEX-Desktop' == github.repository
run: |
echo "Running tests"
$Env:REPORT_CI_TOKEN = "${{ secrets.REPORT_CI_TOKEN_SECRET }}"
$Env:QT_INSTALL_CMAKE_PATH = "C:\Qt\${{ matrix.qt }}\msvc2019_64"
cmd /c '.\ci_tools_atomic_dex.exe tests release 2>&1'
cd build-Release
cd bin
ls
#Invoke-WebRequest -Uri https://report.ci/upload.py -OutFile upload.py
#python upload.py --sha $(git rev-parse HEAD) -n "[Doctest Windows]" --include='${{ env.DEX_PROJECT_NAME }}-tests-result.xml' --framework=doctest --merge ".*"
- name: Upload env variable for artifacts (Linux)
if: runner.os == 'Linux'
run: |
Expand Down
26 changes: 0 additions & 26 deletions .github/workflows/sync_mirror.yml

This file was deleted.

10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include(vcpkg_prerequisites)
include(qt_prerequisites)
include(cfg_hash)

project(${DEX_PROJECT_NAME} LANGUAGES CXX VERSION 0.5.2)
project(${DEX_PROJECT_NAME} LANGUAGES CXX VERSION 0.5.3)
message(STATUS "${PROJECT_NAME} is version ${PROJECT_VERSION}")

include(cmake_default_options)
Expand Down Expand Up @@ -61,13 +61,13 @@ endif ()
##! We fetch our dependencies
if (APPLE)
FetchContent_Declare(mm2
URL https://github.com/KomodoPlatform/atomicDEX-API/releases/download/beta-2.1.4829/mm2-762f40258-Darwin-Release.zip)
URL http://195.201.0.6/dev/mm2-1b989f62e-Darwin-Release.zip)
elseif (UNIX AND NOT APPLE)
FetchContent_Declare(mm2
URL https://github.com/KomodoPlatform/atomicDEX-API/releases/download/beta-2.1.4829/mm2-762f40258-Linux-Release.zip)
URL http://195.201.0.6/dev/mm2-1b989f62e-Linux-Release.zip)
else ()
FetchContent_Declare(mm2
URL https://github.com/KomodoPlatform/atomicDEX-API/releases/download/beta-2.1.4829/mm2-762f40258-Windows_NT-Release.zip)
URL http://195.201.0.6/dev/mm2-1b989f62e-Windows_NT-Release.zip)
endif ()

#FetchContent_Declare(qmaterial URL https://github.com/KomodoPlatform/Qaterial/archive/last-clang-working-2.zip)
Expand All @@ -79,7 +79,7 @@ FetchContent_Declare(
)

FetchContent_Declare(jl777-coins
URL https://github.com/KomodoPlatform/coins/archive/master.zip)
URL https://github.com/cipig/coins/archive/nogeo.zip)

#FetchContent_Declare(adex-generics-coins
# URL https://github.com/KomodoPlatform/atomicdex-desktop-generics/archive/main.zip)
Expand Down
Loading

0 comments on commit c8054c9

Please sign in to comment.