Skip to content

Android Tools AppImage #158

Android Tools AppImage

Android Tools AppImage #158

Workflow file for this run

name: Android Tools AppImage
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
on:
schedule:
- cron: "0 16 1/14 * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: build
run: |
sudo apt update
wget https://raw.githubusercontent.com/Samueru-sama/android-tools-AppImage/main/android-tools-appimage.sh
chmod a+x ./android-tools-appimage.sh
./android-tools-appimage.sh
mkdir dist
mv *AppImage* dist/
mv *AppBundle* dist/
- name: Check version file
run: |
cat ~/version
echo "APP_VERSION=$(cat ~/version)" >> "${GITHUB_ENV}"
- name: Upload artifact
uses: actions/[email protected]
with:
name: AppImage
path: 'dist'
- name: Upload version file
uses: actions/[email protected]
with:
name: version
path: ~/version
release:
if: ${{ github.ref_name == 'main' }}
needs: [build]
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
name: AppImage
- uses: actions/[email protected]
with:
name: version
- name: Read version and Get date
run: |
echo "VERSION=$(cat version)" >> "${GITHUB_ENV}"
echo "DATE=$(date +'%Y-%m-%d_%s')" >> "${GITHUB_ENV}"
- name: Release Artifacts
uses: softprops/[email protected]
with:
name: "Android Tools: ${{ env.VERSION }}"
tag_name: "${{ env.VERSION }}@${{ env.DATE }}"
prerelease: false
draft: false
generate_release_notes: false
make_latest: true
files: |
*.AppImage*
*.AppBundle*
- uses: actions/checkout@v4
- name: Update LATEST_VERSION
run: |
echo "${{ env.VERSION }}" > ./LATEST_VERSION
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add ./LATEST_VERSION
git commit --allow-empty -m 'bump `LATEST_VERSION` [skip ci]'
git push
soar-nest:
needs: [release] #Only runs if release succeeded
permissions:
attestations: write #Needed for Build Provenance & Attestations
contents: write #Needed to create Release
id-token: write #Needed for Build Provenance & Attestations
packages: write #Needed to push to ghcr
uses: "pkgforge/soarpkgs/.github/workflows/matrix_builds.yaml@main"
with:
host: "x86_64-Linux" #Otherwise aarch64-Linux OR ALL for both
sbuild-url: "https://raw.githubusercontent.com/pkgforge/soarpkgs/refs/heads/main/packages/android-tools/appimage.pkgforge-dev.stable.yaml" #RAW URL to the SBUILD Recipe, can be hosted anywhere
ghcr-url: "ghcr.io/${{ github.repository }}/stable" #Package will be pushed under this path
pkg-family: "android-tools" #Needed to generate tags & artifact names
banner: true #If false, then Disables PkgForge Branding in LogFiles
debug: false #If set to true, will run everything with set -x
logs: true #Will Attach the entire Logs + File as Workflow Artifact
rebuild: true #Will rebuild even if ghcr tag already exists