mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: =?UTF-8?q?Olivier=20Samyn=20=F0=9F=8E=BB?= <code@oleastre.be>
		
			
				
	
	
		
			45 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: android
 | 
						|
 | 
						|
# build on c/cpp changes or workflow changes
 | 
						|
on:
 | 
						|
  push:
 | 
						|
    paths:
 | 
						|
      - 'lib/**.[ch]'
 | 
						|
      - 'lib/**.cpp'
 | 
						|
      - 'src/**.[ch]'
 | 
						|
      - 'src/**.cpp'
 | 
						|
      - 'android/**'
 | 
						|
      - '.github/workflows/android.yml'
 | 
						|
  pull_request:
 | 
						|
    paths:
 | 
						|
      - 'lib/**.[ch]'
 | 
						|
      - 'lib/**.cpp'
 | 
						|
      - 'src/**.[ch]'
 | 
						|
      - 'src/**.cpp'
 | 
						|
      - 'android/**'
 | 
						|
      - '.github/workflows/android.yml'
 | 
						|
 | 
						|
jobs:
 | 
						|
  build:
 | 
						|
    runs-on: ubuntu-18.04
 | 
						|
    steps:
 | 
						|
    - uses: actions/checkout@v2
 | 
						|
    - name: Set up JDK 1.8
 | 
						|
      uses: actions/setup-java@v1
 | 
						|
      with:
 | 
						|
        java-version: 1.8
 | 
						|
    - name: Install deps
 | 
						|
      run: sudo apt-get update; sudo apt-get install -y --no-install-recommends gettext
 | 
						|
    - name: Build with Gradle
 | 
						|
      run: cd android; ./gradlew assemblerelease
 | 
						|
    - name: Save armeabi artifact
 | 
						|
      uses: actions/upload-artifact@v2
 | 
						|
      with:
 | 
						|
        name: Minetest-armeabi-v7a.apk
 | 
						|
        path: android/app/build/outputs/apk/release/app-armeabi-v7a-release-unsigned.apk
 | 
						|
    - name: Save arm64 artifact
 | 
						|
      uses: actions/upload-artifact@v2
 | 
						|
      with:
 | 
						|
        name: Minetest-arm64-v8a.apk
 | 
						|
        path: android/app/build/outputs/apk/release/app-arm64-v8a-release-unsigned.apk
 |