FoldCraftLauncher/.github/workflows/debug.yml

45 lines
979 B
YAML
Raw Normal View History

2024-02-03 03:18:48 +00:00
name: Build debug
on:
pull_request:
branches-ignore:
- ''
push:
tags:
- 'v*'
branches-ignore:
- ''
workflow_dispatch:
jobs:
build:
if: github.repository_owner != 'FCL-Team'
strategy:
matrix:
arch: [ "all", "arm", "arm64", "x86", "x64" ]
fail-fast: false
name: Build for ${{matrix.arch}}
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build ${{matrix.arch}} .apk
run: |
chmod +x gradlew
./gradlew assemblefordebug -Darch=${{matrix.arch}}
- name: Upload debug apk
if: startsWith(github.ref, 'refs/heads/')
uses: actions/upload-artifact@v3
with:
name: app-debug-${{matrix.arch}}
path: FCL/build/outputs/apk/fordebug/*
# retention-days: 1