maple: better vmu I/O error handling #437
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: Android CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up build environment | |
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;20.0.5594570" | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Gradle | |
working-directory: shell/android-studio | |
run: ./gradlew assembleDebug --parallel | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: flycast-debug.apk | |
path: shell/android-studio/flycast/build/outputs/apk/debug/flycast-debug.apk | |
- name: Set up git vars | |
run: | | |
echo GIT_BUILD=`git describe --all --always | sed 's/remotes\/origin/heads/'`-$GITHUB_SHA >> $GITHUB_ENV | |
- name: Clean up | |
run: rm -f shell/android-studio/flycast/build/outputs/apk/debug/*.json | |
- uses: jakejarvis/s3-sync-action@master | |
with: | |
args: --acl public-read --follow-symlinks | |
env: | |
AWS_S3_BUCKET: flycast-builds | |
AWS_ACCESS_KEY_ID: AKIAJOZQS4H2PHQWYFCA | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_KEY }} | |
AWS_REGION: 'us-east-2' | |
SOURCE_DIR: 'shell/android-studio/flycast/build/outputs/apk/debug/' | |
DEST_DIR: android/${{ env.GIT_BUILD }} | |
if: ${{ github.event_name == 'push' }} |