Reorganising build.gradle for CUDA 12
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 31s
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 31s
				
			Signed-off-by: brian <brian@brutex.de>
This commit is contained in:
		
							parent
							
								
									1090aed6a2
								
							
						
					
					
						commit
						50eb2915bc
					
				@ -2,6 +2,12 @@ name: Gitea Actions Demo
 | 
			
		||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
 | 
			
		||||
on: [push]
 | 
			
		||||
 | 
			
		||||
env:
 | 
			
		||||
  OS: ubuntu2004
 | 
			
		||||
  cudnn_version: 8.9.4.25
 | 
			
		||||
  cuda_version: cuda12.2
 | 
			
		||||
  CMAKE_VER: 3.27.4
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  Explore-Gitea-Actions:
 | 
			
		||||
    runs-on: ubuntu-20.04:docker://nvidia/cuda:12.2.0-devel-ubuntu20.04
 | 
			
		||||
@ -17,11 +23,26 @@ jobs:
 | 
			
		||||
        run: |
 | 
			
		||||
          ls ${{ gitea.workspace }}
 | 
			
		||||
 | 
			
		||||
      - name: Update initial docker image with apt-get
 | 
			
		||||
        run: |
 | 
			
		||||
          apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y wget software-properties-common && \
 | 
			
		||||
          wget https://developer.download.nvidia.com/compute/cuda/repos/${OS}/x86_64/cuda-${OS}.pin && \
 | 
			
		||||
          mv cuda-${OS}.pin /etc/apt/preferences.d/cuda-repository-pin-600 && \
 | 
			
		||||
          apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/${OS}/x86_64/7fa2af80.pub && \
 | 
			
		||||
          add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/${OS}/x86_64/ /"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
          RUN apt-get update && apt-get upgrade -y &&  \
 | 
			
		||||
              DEBIAN_FRONTEND=noninteractive apt-get install -y openjdk-11-jdk \
 | 
			
		||||
              build-essential checkinstall zlib1g-dev libssl-dev git libpthread-stubs0-dev \
 | 
			
		||||
              libcudnn8=${cudnn_version}-1+${cuda_version} libcudnn8-dev=${cudnn_version}-1+${cuda_version} \
 | 
			
		||||
              cuda-drivers
 | 
			
		||||
      - name: Setup Java
 | 
			
		||||
        uses: actions/setup-java@v3
 | 
			
		||||
        with:
 | 
			
		||||
          distribution: 'temurin' # See 'Supported distributions' for available options
 | 
			
		||||
          java-version: '11'
 | 
			
		||||
          cache: 'gradle'
 | 
			
		||||
 | 
			
		||||
      - name: Install CMake and Ninja
 | 
			
		||||
        uses: lukka/get-cmake@latest
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user