mirror of
				https://github.com/ton-blockchain/ton
				synced 2025-03-09 15:40:10 +00:00 
			
		
		
		
	Fix timeout issue for Github action Docker Compile Ubuntu x86-64 & arm64 (#501)
* fix gh action timeout; delete old actions; * fix gh action timeout; delete old actions;
This commit is contained in:
		
							parent
							
								
									6e8df7bcb2
								
							
						
					
					
						commit
						caa52c98d7
					
				
					 14 changed files with 21 additions and 199 deletions
				
			
		
							
								
								
									
										3
									
								
								.github/script/amd64-18.04.Dockerfile
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/script/amd64-18.04.Dockerfile
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -13,5 +13,6 @@ RUN mkdir /ton/build
 | 
			
		|||
WORKDIR /ton/build
 | 
			
		||||
ENV CC clang
 | 
			
		||||
ENV CXX clang++
 | 
			
		||||
ENV CCACHE_DISABLE 1
 | 
			
		||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
 | 
			
		||||
RUN ninja tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server create-state lite-client
 | 
			
		||||
RUN ninja tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server lite-client
 | 
			
		||||
							
								
								
									
										3
									
								
								.github/script/amd64-20.04.Dockerfile
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/script/amd64-20.04.Dockerfile
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -13,5 +13,6 @@ RUN mkdir /ton/build
 | 
			
		|||
WORKDIR /ton/build
 | 
			
		||||
ENV CC clang
 | 
			
		||||
ENV CXX clang++
 | 
			
		||||
ENV CCACHE_DISABLE 1
 | 
			
		||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
 | 
			
		||||
RUN ninja tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server create-state lite-client
 | 
			
		||||
RUN ninja tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server lite-client
 | 
			
		||||
							
								
								
									
										3
									
								
								.github/script/amd64-22.04.Dockerfile
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/script/amd64-22.04.Dockerfile
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -13,5 +13,6 @@ RUN mkdir /ton/build
 | 
			
		|||
WORKDIR /ton/build
 | 
			
		||||
ENV CC clang
 | 
			
		||||
ENV CXX clang++
 | 
			
		||||
ENV CCACHE_DISABLE 1
 | 
			
		||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
 | 
			
		||||
RUN ninja tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server create-state lite-client
 | 
			
		||||
RUN ninja tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server lite-client
 | 
			
		||||
							
								
								
									
										3
									
								
								.github/script/arm64-18.04.Dockerfile
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/script/arm64-18.04.Dockerfile
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -13,5 +13,6 @@ RUN mkdir /ton/build
 | 
			
		|||
WORKDIR /ton/build
 | 
			
		||||
ENV CC clang
 | 
			
		||||
ENV CXX clang++
 | 
			
		||||
ENV CCACHE_DISABLE 1
 | 
			
		||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DTON_ARCH= ..
 | 
			
		||||
RUN ninja tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server create-state lite-client
 | 
			
		||||
RUN ninja tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server lite-client
 | 
			
		||||
							
								
								
									
										3
									
								
								.github/script/arm64-20.04.Dockerfile
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/script/arm64-20.04.Dockerfile
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -13,5 +13,6 @@ RUN mkdir /ton/build
 | 
			
		|||
WORKDIR /ton/build
 | 
			
		||||
ENV CC clang
 | 
			
		||||
ENV CXX clang++
 | 
			
		||||
ENV CCACHE_DISABLE 1
 | 
			
		||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DTON_ARCH= ..
 | 
			
		||||
RUN ninja tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server create-state lite-client
 | 
			
		||||
RUN ninja tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server lite-client
 | 
			
		||||
							
								
								
									
										3
									
								
								.github/script/arm64-22.04.Dockerfile
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/script/arm64-22.04.Dockerfile
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -13,5 +13,6 @@ RUN mkdir /ton/build
 | 
			
		|||
WORKDIR /ton/build
 | 
			
		||||
ENV CC clang
 | 
			
		||||
ENV CXX clang++
 | 
			
		||||
ENV CCACHE_DISABLE 1
 | 
			
		||||
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DTON_ARCH= ..
 | 
			
		||||
RUN ninja tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server create-state lite-client
 | 
			
		||||
RUN ninja tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server lite-client
 | 
			
		||||
							
								
								
									
										1
									
								
								.github/workflows/docker-compile-ubuntu.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.github/workflows/docker-compile-ubuntu.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -6,6 +6,7 @@ jobs:
 | 
			
		|||
  build:
 | 
			
		||||
    strategy:
 | 
			
		||||
      fail-fast: false
 | 
			
		||||
      max-parallel: 3
 | 
			
		||||
      matrix:
 | 
			
		||||
        arch: [amd64, arm64]
 | 
			
		||||
        ver: [18.04, 20.04, 22.04]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								.github/workflows/docker-ubuntu-image.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/docker-ubuntu-image.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -13,7 +13,7 @@ jobs:
 | 
			
		|||
    runs-on: ubuntu-18.04
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout
 | 
			
		||||
        uses: actions/checkout@v2
 | 
			
		||||
        uses: actions/checkout@v3
 | 
			
		||||
 | 
			
		||||
      - name: Set up QEMU
 | 
			
		||||
        uses: docker/setup-qemu-action@v1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										6
									
								
								.github/workflows/macos-10.15-compile.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/macos-10.15-compile.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,8 +1,6 @@
 | 
			
		|||
name: C/C++ CI macOS-10.15 Compile
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  workflow_dispatch:
 | 
			
		||||
  push:
 | 
			
		||||
on: [push,workflow_dispatch,workflow_call]
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
| 
						 | 
				
			
			@ -11,7 +9,7 @@ jobs:
 | 
			
		|||
 | 
			
		||||
    steps:
 | 
			
		||||
    - name: Check out repository
 | 
			
		||||
      uses: actions/checkout@v2
 | 
			
		||||
      uses: actions/checkout@v3
 | 
			
		||||
      with:      
 | 
			
		||||
        submodules: 'recursive'
 | 
			
		||||
    - name: Compile OpenSSL
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										60
									
								
								.github/workflows/macos-10.15-tonlib-java.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										60
									
								
								.github/workflows/macos-10.15-tonlib-java.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,60 +0,0 @@
 | 
			
		|||
name: macOS-10.15 tonlib-java
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  workflow_dispatch:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - 'wallets'
 | 
			
		||||
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: Configure & Build
 | 
			
		||||
        run: |
 | 
			
		||||
          rootPath=`pwd`
 | 
			
		||||
 | 
			
		||||
          export CC=$(which clang)
 | 
			
		||||
          export CXX=$(which clang++)
 | 
			
		||||
          export CCACHE_DISABLE=1
 | 
			
		||||
 | 
			
		||||
          export JAVA_AWT_LIBRARY=NotNeeded
 | 
			
		||||
          export JAVA_JVM_LIBRARY=NotNeeded
 | 
			
		||||
          export JAVA_INCLUDE_PATH=${JAVA_HOME}/include
 | 
			
		||||
          export JAVA_AWT_INCLUDE_PATH=${JAVA_HOME}/include
 | 
			
		||||
          export JAVA_INCLUDE_PATH2=${JAVA_HOME}/include/darwin
 | 
			
		||||
 | 
			
		||||
          cd example/android/
 | 
			
		||||
          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++" -DTON_ONLY_TONLIB=ON ..
 | 
			
		||||
          cmake --build . --target prepare_cross_compiling
 | 
			
		||||
          cmake --build . --target native-lib --config Release
 | 
			
		||||
 | 
			
		||||
      - name: find & copy binaries
 | 
			
		||||
        run: |
 | 
			
		||||
          mkdir -p artifacts/tonlib-java
 | 
			
		||||
          cp example/android/src/drinkless/org/ton/TonApi.java artifacts/tonlib-java/
 | 
			
		||||
          cp example/android/build/libnative-lib.dylib artifacts/tonlib-java/
 | 
			
		||||
 | 
			
		||||
      - name: Upload artifacts
 | 
			
		||||
        uses: actions/upload-artifact@master
 | 
			
		||||
        with:
 | 
			
		||||
          name: tonlib-macos-java
 | 
			
		||||
          path: artifacts
 | 
			
		||||
							
								
								
									
										6
									
								
								.github/workflows/ubuntu-18.04-compile.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/ubuntu-18.04-compile.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
name: C/C++ CI Ubuntu 18.04 Compile
 | 
			
		||||
name: Ubuntu 18.04 Compile
 | 
			
		||||
 | 
			
		||||
on: [push,workflow_dispatch]
 | 
			
		||||
on: [push,workflow_dispatch,workflow_call]
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
| 
						 | 
				
			
			@ -9,7 +9,7 @@ jobs:
 | 
			
		|||
 | 
			
		||||
    steps:
 | 
			
		||||
    - name: Check out repository
 | 
			
		||||
      uses: actions/checkout@v2
 | 
			
		||||
      uses: actions/checkout@v3
 | 
			
		||||
      with:      
 | 
			
		||||
        submodules: 'recursive'
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										50
									
								
								.github/workflows/ubuntu-18.04-tonlib-java.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										50
									
								
								.github/workflows/ubuntu-18.04-tonlib-java.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,50 +0,0 @@
 | 
			
		|||
name: Ubuntu 18.04 tonlib-java
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  workflow_dispatch:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - 'wallets'
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
 | 
			
		||||
    runs-on: ubuntu-18.04
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
    - name: Check out repository
 | 
			
		||||
      uses: actions/checkout@v2
 | 
			
		||||
      with:      
 | 
			
		||||
        submodules: 'recursive'
 | 
			
		||||
 | 
			
		||||
    - name: Install libraries
 | 
			
		||||
      run: |
 | 
			
		||||
        sudo apt update
 | 
			
		||||
        sudo apt install -y build-essential git make cmake clang libgflags-dev zlib1g-dev libssl-dev libreadline-dev libmicrohttpd-dev pkg-config libgsl-dev python3 python3-dev ninja-build
 | 
			
		||||
 | 
			
		||||
    - name: Configure & Build
 | 
			
		||||
      run: |
 | 
			
		||||
        export JAVA_AWT_LIBRARY=NotNeeded
 | 
			
		||||
        export JAVA_JVM_LIBRARY=NotNeeded
 | 
			
		||||
        export JAVA_INCLUDE_PATH=${JAVA_HOME}/include
 | 
			
		||||
        export JAVA_AWT_INCLUDE_PATH=${JAVA_HOME}/include
 | 
			
		||||
        export JAVA_INCLUDE_PATH2=${JAVA_HOME}/include/linux
 | 
			
		||||
 | 
			
		||||
        cd example/android/
 | 
			
		||||
        mkdir build
 | 
			
		||||
        cd build
 | 
			
		||||
        cmake -DTON_ONLY_TONLIB=ON ..
 | 
			
		||||
        cmake --build . --target prepare_cross_compiling
 | 
			
		||||
        cmake --build . --target native-lib
 | 
			
		||||
 | 
			
		||||
    - name: find & copy binaries
 | 
			
		||||
      run: |
 | 
			
		||||
        mkdir -p artifacts/tonlib-java        
 | 
			
		||||
        cp example/android/src/drinkless/org/ton/TonApi.java artifacts/tonlib-java/
 | 
			
		||||
        cp example/android/build/libnative-lib.so artifacts/tonlib-java/
 | 
			
		||||
 | 
			
		||||
    - name: Upload artifacts
 | 
			
		||||
      uses: actions/upload-artifact@master
 | 
			
		||||
      with:
 | 
			
		||||
        name: tonlib-ubuntu-java
 | 
			
		||||
        path: artifacts
 | 
			
		||||
							
								
								
									
										6
									
								
								.github/workflows/windows2019x64-compile.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/windows2019x64-compile.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,8 +1,6 @@
 | 
			
		|||
name: Windows Server 2019 x64 Compile
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  workflow_dispatch:
 | 
			
		||||
  push:
 | 
			
		||||
on: [push,workflow_dispatch,workflow_call]
 | 
			
		||||
 | 
			
		||||
defaults:
 | 
			
		||||
  run:
 | 
			
		||||
| 
						 | 
				
			
			@ -19,7 +17,7 @@ jobs:
 | 
			
		|||
          systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
 | 
			
		||||
 | 
			
		||||
      - name: Check out current repository
 | 
			
		||||
        uses: actions/checkout@v2
 | 
			
		||||
        uses: actions/checkout@v3
 | 
			
		||||
        with:
 | 
			
		||||
          submodules: 'recursive'
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										71
									
								
								.github/workflows/windows2019x64-tonlib-java.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										71
									
								
								.github/workflows/windows2019x64-tonlib-java.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,71 +0,0 @@
 | 
			
		|||
name: Windows 2019 tonlib-java
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  workflow_dispatch:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - 'wallets'
 | 
			
		||||
 | 
			
		||||
defaults:
 | 
			
		||||
  run:
 | 
			
		||||
    shell: cmd
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
 | 
			
		||||
    runs-on: windows-2019
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Get Current OS version
 | 
			
		||||
        run: |
 | 
			
		||||
          systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
 | 
			
		||||
      - name: Check out current repository
 | 
			
		||||
        uses: actions/checkout@v2
 | 
			
		||||
        with:
 | 
			
		||||
          submodules: 'recursive'
 | 
			
		||||
 | 
			
		||||
      - name: Check out zlib repository
 | 
			
		||||
        uses: actions/checkout@v2
 | 
			
		||||
        with:
 | 
			
		||||
          repository: desktop-app/zlib
 | 
			
		||||
          path: zlib
 | 
			
		||||
 | 
			
		||||
      - name: Setup msbuild.exe
 | 
			
		||||
        uses: microsoft/setup-msbuild@v1.0.2
 | 
			
		||||
 | 
			
		||||
      - name: Compile zlib Win64
 | 
			
		||||
        run: |
 | 
			
		||||
          cd zlib\contrib\vstudio\vc14
 | 
			
		||||
          msbuild zlibstat.vcxproj /p:Configuration=ReleaseWithoutAsm /p:platform=x64 -p:PlatformToolset=v142
 | 
			
		||||
 | 
			
		||||
      - name: Install precompiled OpenSSL Win64
 | 
			
		||||
        run: |                    
 | 
			
		||||
          curl  -Lo openssl-1.1.1o.zip https://github.com/neodiX42/precompiled-openssl-win64/raw/main/openssl-1.1.1o.zip
 | 
			
		||||
          jar xf openssl-1.1.1o.zip
 | 
			
		||||
 | 
			
		||||
      - name: Configure & Build
 | 
			
		||||
        run: |
 | 
			
		||||
          set JAVA_AWT_LIBRARY=NotNeeded
 | 
			
		||||
          set JAVA_JVM_LIBRARY=NotNeeded
 | 
			
		||||
          set JAVA_INCLUDE_PATH=${JAVA_HOME}/include
 | 
			
		||||
          set JAVA_AWT_INCLUDE_PATH=${JAVA_HOME}/include
 | 
			
		||||
          set JAVA_INCLUDE_PATH2=${JAVA_HOME}/include/win32
 | 
			
		||||
 | 
			
		||||
          set root=%cd%
 | 
			
		||||
          echo %root%
 | 
			
		||||
          cd example/android
 | 
			
		||||
          mkdir build
 | 
			
		||||
          cd build
 | 
			
		||||
          cmake -DZLIB_FOUND=1 -DZLIB_INCLUDE_DIR=%root%\zlib -DZLIB_LIBRARY=%root%\zlib\contrib\vstudio\vc14\x64\ZlibStatReleaseWithoutAsm\zlibstat.lib -DOPENSSL_FOUND=1 -DOPENSSL_INCLUDE_DIR=%root%/openssl-1.1/x64/include -DOPENSSL_CRYPTO_LIBRARY=%root%/openssl-1.1/x64/lib/libcrypto.lib -DTON_ONLY_TONLIB=ON -DCMAKE_CXX_FLAGS="/DTD_WINDOWS=1 /EHsc /bigobj /W0" ..
 | 
			
		||||
          cmake --build . --target native-lib --config Release
 | 
			
		||||
 | 
			
		||||
      - name: Find & copy binaries
 | 
			
		||||
        run: |
 | 
			
		||||
          mkdir tonlib-java                    
 | 
			
		||||
          cp example/android/build/Release/native-lib.dll tonlib-java/
 | 
			
		||||
 | 
			
		||||
      - name: Upload artifacts
 | 
			
		||||
        uses: actions/upload-artifact@master
 | 
			
		||||
        with:
 | 
			
		||||
          name: tonlib-win64-java
 | 
			
		||||
          path: tonlib-java
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue