FoldCraftLauncher/.github/workflows/main.yml

43 lines
936 B
YAML
Raw Normal View History

2024-01-07 10:10:44 +00:00
name: Android CI
on:
pull_request:
branches-ignore:
- ''
push:
branches-ignore:
- ''
workflow_dispatch:
jobs:
build:
2024-01-16 05:53:43 +00:00
strategy:
matrix:
arch: [ "all", "arm", "arm64", "x86", "x64" ]
fail-fast: false
2024-01-14 01:22:55 +00:00
env:
FCL_KEYSTORE_PASSWORD: ${{ secrets.FCL_KEYSTORE_PASSWORD }}
2024-01-16 05:53:43 +00:00
name: Build for ${{matrix.arch}}
2024-01-07 10:10:44 +00:00
runs-on: ubuntu-20.04
steps:
2024-01-16 05:53:43 +00:00
- uses: actions/checkout@v2
with:
fetch-depth: 0
2024-01-07 10:10:44 +00:00
2024-01-16 05:53:43 +00:00
- name: set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
2024-01-07 10:10:44 +00:00
2024-01-16 05:53:43 +00:00
- name: Build debug ${{matrix.arch}} .apk
run: |
chmod +x gradlew
./gradlew assembleautobuild -Darch=${{matrix.arch}}
- name: upload apk
uses: actions/upload-artifact@v3
with:
name: app-debug-${{matrix.arch}}
path: FCL/build/outputs/apk/autobuild/*
# retention-days: 1