Add basic GitHub Actions workflow #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |