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