Skip to content

Update CI

Update CI #16

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_apk:
name: Generate APK
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup JDK
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build APK
run: cd demo_apk && bash ./gradlew assembleDebug --stacktrace
- name: Upload APK
uses: actions/upload-artifact@v1
with:
name: demoapk
path: app/build/outputs/apk/debug/app-debug.apk
test:
name: Test JNI extraction
needs: build_apk
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Download APK from build
uses: actions/download-artifact@v1
with:
name: demoapk
- name: preinstall
run: pip3 install -r requirements.txt
- name: test
run: ./extract_jni.py demoapk/app-debug.apk
release:
name: release APK
needs: demoapk

Check failure on line 44 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 44, Col: 12): Job 'release' depends on unknown job 'demoapk'.
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Download APK from build
uses: actions/download-artifact@v1
with:
name: demoapk
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
- name: Upload Release APK
id: upload_release_asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: demoapk/app-debug.apk
asset_name: DemoJNI-debug.apk
asset_content_type: application/zip