Skip to content

πŸŒ™ Nightly build πŸš€ 2.6.3-2024-08-26-032483b #168

πŸŒ™ Nightly build πŸš€ 2.6.3-2024-08-26-032483b

πŸŒ™ Nightly build πŸš€ 2.6.3-2024-08-26-032483b #168

Workflow file for this run

name: build
run-name: πŸŒ™ Nightly build πŸš€ ${{ github.event.client_payload.tag }}-${{ github.event.client_payload.date }}-${{ github.event.client_payload.sha }}
on:
repository_dispatch:
types: [build-nightly]
jobs:
build:
name: ${{ matrix.target_arch }} build
runs-on: ubuntu-latest
env:
ANDROID_HOME: "/opt/termux/android-sdk"
NDK: "/opt/termux/android-ndk"
strategy:
matrix:
target_arch: [aarch64, arm, i686, x86_64]
steps:
- name: Checkout termux-packages
uses: actions/checkout@v4
with:
repository: termux/termux-packages
path: termux-packages
- name: Checkout
uses: actions/checkout@v4
with:
path: packages
- name: Build packages
working-directory: ./termux-packages
env:
DATE: ${{ github.event.client_payload.date }}
SHA: ${{ github.event.client_payload.sha }}
TAG: ${{ github.event.client_payload.tag }}
run: |
VERSION=$TAG+git$(date -d $DATE +%Y%m%d)
find . -type d -name 'far2l' -exec rm -rf {} +
cp -vr ${GITHUB_WORKSPACE}/packages/* packages
sed "s|@GIT_DATE@|$DATE|" -i packages/far2l/build.sh
sed "s|@VERSION@|$VERSION|" -i packages/far2l/build.sh
sed "s|@GIT_HASH@|$SHA|" -i packages/far2l/build.sh
./scripts/run-docker.sh ./build-package.sh -I -a ${{ matrix.target_arch }} far2l
ls -1R output
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: debs-${{ matrix.target_arch }}
path: termux-packages/output/*.deb
gh-pages:
needs: build
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Merge artifacts
run: |
mkdir debs
find . -name '*.deb' -exec cp -t ./debs {} +
- name: Install termux-apt-repo
run: python3 -m pip install termux-apt-repo
- name: Create apt repo
run: |
termux-apt-repo ./debs ./public
- name: Deploy to GH pages
id: gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
full_commit_message: ${{ github.event.client_payload.repo }}@${{ github.event.client_payload.sha }}
force_orphan: true
- name: Update version for badge
if: steps.gh-pages.outcome == 'success'
uses: schneegans/dynamic-badges-action@v1.7.0
with:
auth: ${{ secrets.GIST_SECRET }}
gistID: f53cb6c1d56b0eaf40c88d607fc5fef1
filename: far2l-termux.json
label: version
message: ${{ github.event.client_payload.tag }}-${{ github.event.client_payload.date }}-${{ github.event.client_payload.sha }}
color: blue
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
continue-on-error: true