Scopy1 Appimage #154
Workflow file for this run
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-apk build | |
on: [push, pull_request] | |
env: | |
BUILD_HOST: ubuntu-latest | |
USERNAME: github-actions | |
jobs: | |
make-apk: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Pull the Docker Image | |
run: docker pull cristianbindea/scopy-android:latest | |
- name: Run Docker Image | |
run: | | |
$GITHUB_WORKSPACE/CI/appveyor/gen_ci_envs.sh > $GITHUB_WORKSPACE/CI/appveyor/gh-actions.envs | |
docker run --privileged --net=host \ | |
-v $(pwd):$GITHUB_WORKSPACE:rw \ | |
-e "BRANCH=${GITHUB_REF#refs/heads/}" \ | |
--env-file $GITHUB_WORKSPACE/CI/appveyor/gh-actions.envs \ | |
cristianbindea/scopy-android:latest /bin/bash -xe $GITHUB_WORKSPACE/CI/appveyor/build_scopy_apk.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: scopy-android | |
path: | | |
${{ github.workspace }}/*.apk | |
${{ github.workspace }}/*.aab | |
${{ github.workspace }}/scopy*android-native-symbols.zip | |
- name: Upload master apk and aab builds to continous prerelease | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
run: | | |
ARTIFACTS_ARCHIVE=scopy-${GITHUB_SHA::7}-android.zip | |
zip ${ARTIFACTS_ARCHIVE} *.apk *.aab | |
wget https://github.com/tcnksm/ghr/releases/download/v0.13.0/ghr_v0.13.0_linux_amd64.tar.gz | |
tar xvf ghr_v0.13.0_linux_amd64.tar.gz | |
ghr_v0.13.0_linux_amd64/ghr -u ${{ github.repository_owner }} -r scopy -name "Continuous build" -b "Latest succesful master build " -prerelease -debug -replace continous ${ARTIFACTS_ARCHIVE} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |