Skip to content

Appimage (Nightly)

Appimage (Nightly) #89

Workflow file for this run

name: Appimage (Nightly)
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
on:
schedule:
- cron: "0 5 1/3 * *"
workflow_dispatch: {}
jobs:
build:
name: "${{ matrix.name }} (${{ matrix.arch }})"
runs-on: ${{ matrix.runs-on }}
strategy:
matrix:
include:
- runs-on: ubuntu-latest
optimized: false
name: "Azahar build (Normal)"
arch: x86_64
- runs-on: ubuntu-latest
optimized: true
name: "Azahar Build (Optimized)"
arch: x86_64
- runs-on: ubuntu-24.04-arm
name: "Azahar build"
optimized: false
arch: aarch64
container: ghcr.io/pkgforge-dev/archlinux:latest
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
CCACHE_COMPILERCHECK: content
CCACHE_SLOPPINESS: time_macros
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install dependencies
if: always()
run: chmod +x ./get-dependencies.sh && ./get-dependencies.sh
- name: Restore ccache
uses: actions/cache@v4
with:
path: ${{ env.CCACHE_DIR }}
key: ${{ matrix.runs-on }}-ccache-${{ matrix.optimized }}-${{ github.sha }}
restore-keys: |
${{ matrix.runs-on }}-ccache-${{ matrix.optimized }}-
- name: Compile Azahar (Normal)
if: ${{ matrix.optimized == false }}
run: |
export DEVEL=true
chmod +x ./azahar-appimage.sh && ./azahar-appimage.sh
mkdir -p dist
mv *.AppImage* dist/
- name: Compile Azahar (Optimized)
if: ${{ matrix.optimized == true }}
run: |
export DEVEL=true
chmod +x ./azahar-appimage.sh && ./azahar-appimage.sh v3
mkdir -p dist
mv *.AppImage* dist/
- name: Upload artifact
uses: actions/[email protected]
with:
name: azahar-${{ matrix.optimized && 'optimized' || 'normal' }}-appimage-${{ matrix.arch }}
path: "dist"
- name: Check version file
if: ${{ matrix.optimized == false }}
run: |
cat ~/version
echo "APP_VERSION=$(cat ~/version)" >> "${GITHUB_ENV}"
- name: Upload version file
uses: actions/[email protected]
with:
name: version
path: ~/version
overwrite: true
release:
if: ${{ github.ref_name == 'main' }}
name: "release"
needs: [build]
permissions:
actions: read
security-events: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
name: azahar-optimized-appimage-x86_64
- uses: actions/[email protected]
with:
name: azahar-normal-appimage-x86_64
- uses: actions/[email protected]
with:
name: azahar-normal-appimage-aarch64
- uses: actions/[email protected]
with:
name: version
- name: Read version
run: |
export VERSION="$(cat version)"
export SNAPSHOT_TAG="$(date --utc +'%Y%m%d-%H%M%S')"
echo "APP_VERSION=${VERSION}" >> "${GITHUB_ENV}"
echo SNAPSHOT_TAG="${SNAPSHOT_TAG}" >> "${GITHUB_ENV}"
- name: Del Previous Release
run: gh release delete "nightly" --repo "${GITHUB_REPOSITORY}" --cleanup-tag -y && sleep 5
env:
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
continue-on-error: true
- name: Continuous Releaser
uses: softprops/[email protected]
with:
name: "Azahar Nightly ${{ env.APP_VERSION }}"
tag_name: "nightly"
prerelease: true
draft: false
generate_release_notes: false
make_latest: true
files: |
*.AppImage*