Skip to content

1.0.244

1.0.244 #59

Workflow file for this run

name: Release
on:
release:
types: [published, edited]
workflow_dispatch:
inputs:
version:
description: dummy
default: dummy
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Install NDK
run: |
echo "y" | sudo /usr/local/lib/android/sdk/cmdline-tools/latest/bin/sdkmanager --install "ndk;21.0.6113669" --sdk_root=${ANDROID_SDK_ROOT}
echo "y" | sudo /usr/local/lib/android/sdk/cmdline-tools/latest/bin/sdkmanager --install "ndk;20.1.5948944" --sdk_root=${ANDROID_SDK_ROOT}
- name: Build with Gradle
run: cd android-refimpl-app ; ./gradlew assembleRelease
- name: upload apk
uses: actions/upload-artifact@v4
with:
name: trifa
path: /home/runner/work/ToxAndroidRefImpl/ToxAndroidRefImpl/android-refimpl-app/app/build/outputs/apk/debug/app-debug.apk
gradle-wrapper-validation:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v3
android-test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: install cliclick
run: brew install cliclick
- name: macos-version1
run: sw_vers -productVersion
- name: macos-version2
run: system_profiler SPSoftwareDataType
- name: android test
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
# ndk: 16.1.4479499
# ndk: 21.0.6113669
ndk: 20.1.5948944
emulator-options: -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim
script: |
rm -f /Users/runner/work/ToxAndroidRefImpl/ToxAndroidRefImpl/android-refimpl-app/app/witness.gradle
printf 'dependencyVerification {\nverify = [\n]\n}\n' > /Users/runner/work/ToxAndroidRefImpl/ToxAndroidRefImpl/android-refimpl-app/app/witness.gradle
cd android-refimpl-app ; ./gradlew assemble
cliclick -m verbose m:12,34
screencapture -T 42 -x -t png /Users/runner/screen01.png &
screencapture -T 43 -x -t png /Users/runner/screen02.png &
screencapture -T 43 -x -t png /Users/runner/screen03.png &
screencapture -T 44 -x -t png /Users/runner/screen04.png &
screencapture -T 45 -x -t png /Users/runner/screen05.png &
screencapture -T 46 -x -t png /Users/runner/screen06.png &
screencapture -T 50 -x -t png /Users/runner/screen07.png &
screencapture -T 240 -x -t png /Users/runner/screen08.png &
cd android-refimpl-app ; ./gradlew connectedAndroidTest || echo "NOERR"
- name: upload screenshots
uses: actions/upload-artifact@v4
with:
name: macscreen
path: |
/Users/runner/screen*.png