Skip to content

Add basic GitHub Actions workflow #1

Add basic GitHub Actions workflow

Add basic GitHub Actions workflow #1

Workflow file for this run

name: Build OdinTools
on:
pull_request:
branches:
- main
push:
branches:
- main
- '*' # Remove before merge
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup JDK
uses: actions/[email protected]
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Make gradlew executable
run: chmod +x gradlew
- name: Build app
run: ./gradlew assembleDebug
- name: Save apk
uses: actions/upload-artifact@v4
with:
name: apk
path: app/build/outputs/apk/debug/OdinTools-*.apk
if-no-files-found: error