From f5436a5940d892089d8fa11e8a574d8e9e36e9c6 Mon Sep 17 00:00:00 2001 From: neodiX42 Date: Fri, 26 Mar 2021 10:25:06 +0100 Subject: [PATCH] Update and rename build ymls --- .github/workflows/macos-10.15-compile.yml | 40 +++++++++++++++++++ ...cpp-linux.yml => ubuntu-18.04-compile.yml} | 4 +- ...p-win64.yml => windows2019x64-compile.yml} | 8 ++-- 3 files changed, 46 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/macos-10.15-compile.yml rename .github/workflows/{ccpp-linux.yml => ubuntu-18.04-compile.yml} (95%) rename .github/workflows/{ccpp-win64.yml => windows2019x64-compile.yml} (94%) diff --git a/.github/workflows/macos-10.15-compile.yml b/.github/workflows/macos-10.15-compile.yml new file mode 100644 index 00000000..3165d39d --- /dev/null +++ b/.github/workflows/macos-10.15-compile.yml @@ -0,0 +1,40 @@ +name: C/C++ CI macOS-10.15 Compile + +on: [push,workflow_dispatch] + +jobs: + build: + + runs-on: macos-10.15 + + steps: + - name: Check out repository + uses: actions/checkout@v2 + with: + submodules: 'recursive' + - name: Compile OpenSSL + run: | + git clone https://github.com/openssl/openssl openssl_1_1_1 + cd openssl_1_1_1 + git checkout OpenSSL_1_1_1-stable + ./Configure --prefix=/usr/local/macos darwin64-x86_64-cc -static -mmacosx-version-min=10.15 + make build_libs -j4 + + - name: Build TON + run: | + rootPath=`pwd` + mkdir build + cd build + cmake -DOPENSSL_FOUND=1 -DOPENSSL_INCLUDE_DIR=$rootPath/openssl_1_1_1/include -DOPENSSL_CRYPTO_LIBRARY=$rootPath/openssl_1_1_1/libcrypto.a -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.15 -DCMAKE_CXX_FLAGS="-stdlib=libc++" -DCMAKE_BUILD_TYPE=Release .. + make -j4 + + - name: Find & copy binaries + run: | + mkdir artifacts + rsync -r --exclude 'CMakeFiles' --exclude 'Makefile' --exclude '*.a' --exclude '*.cmake' --exclude 'third-party' --exclude 'test-*' --exclude '*.cc' --exclude '*.json' --exclude '*.txt' build/* artifacts/ + + - name: Upload artifacts + uses: actions/upload-artifact@master + with: + name: ton-macos-binaries + path: artifacts diff --git a/.github/workflows/ccpp-linux.yml b/.github/workflows/ubuntu-18.04-compile.yml similarity index 95% rename from .github/workflows/ccpp-linux.yml rename to .github/workflows/ubuntu-18.04-compile.yml index 8e502a5f..6a654665 100644 --- a/.github/workflows/ccpp-linux.yml +++ b/.github/workflows/ubuntu-18.04-compile.yml @@ -1,6 +1,6 @@ -name: C/C++ CI +name: C/C++ CI Ubuntu 18.04 Compile -on: [push] +on: [push,workflow_dispatch] jobs: build: diff --git a/.github/workflows/ccpp-win64.yml b/.github/workflows/windows2019x64-compile.yml similarity index 94% rename from .github/workflows/ccpp-win64.yml rename to .github/workflows/windows2019x64-compile.yml index 64811c07..ebeec849 100644 --- a/.github/workflows/ccpp-win64.yml +++ b/.github/workflows/windows2019x64-compile.yml @@ -1,6 +1,6 @@ -name: C/C++ CI Win64 Compile +name: C/C++ CI Windows Server 2019 x64 Compile -on: [push] +on: [push,workflow_dispatch] defaults: run: @@ -9,7 +9,7 @@ defaults: jobs: build: - runs-on: windows-latest + runs-on: windows-2019 steps: - name: Get Current OS version @@ -38,7 +38,7 @@ jobs: - name: Install OpenSSL Win64 run: | - curl -o openssl.msi https://slproweb.com/download/Win64OpenSSL-1_1_1j.msi + curl -o openssl.msi https://slproweb.com/download/Win64OpenSSL-1_1_1k.msi msiexec /i openssl.msi /quiet /qn /norestart - name: Build ton