Skip to content

Appimage Nightly

Appimage Nightly #96

Workflow file for this run

name: Appimage Nightly
concurrency:
group: build-nightly-${{ github.ref }}
cancel-in-progress: true
on:
schedule:
- cron: "0 12 1/3 * *"
workflow_dispatch:
jobs:
build:
name: "${{ matrix.name }} (${{ matrix.arch }})"
runs-on: ${{ matrix.runs-on }}
strategy:
matrix:
include:
- runs-on: ubuntu-latest
name: "ares build"
arch: x86_64
- runs-on: ubuntu-24.04-arm
name: "ares build"
arch: aarch64
container: ghcr.io/pkgforge-dev/archlinux:latest
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
CCACHE_COMPILERCHECK: content
CCACHE_SLOPPINESS: time_macros
SCCACHE_GHA_ENABLED: "true"
steps:
- uses: actions/checkout@v6
- name: Set up ccache for ${{ matrix.arch }}
uses: actions/[email protected]
with:
path: ${{ env.CCACHE_DIR }}
key: ${{ runner.os }}-ccache-nightly-${{ matrix.arch }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-ccache-nightly-${{ matrix.arch }}-
- name: set up sccache-cache
uses: mozilla-actions/[email protected]
- name: Get dependencies
if: always()
run: chmod +x ./get-dependencies.sh && ./get-dependencies.sh
- name: Make AppImage
run: chmod +x ./ares-appimage.sh && ./ares-appimage.sh devel
- name: Check version file
if: ${{ matrix.arch == 'x86_64' }}
run: |
cat ~/version
echo "APP_VERSION=$(cat ~/version)" >> "${GITHUB_ENV}"
- name: Upload artifact
uses: actions/[email protected]
with:
name: AppImage-${{ matrix.arch }}
path: 'dist'
- name: Upload version file
uses: actions/[email protected]
with:
name: version
path: ~/version
overwrite: true
release:
if: ${{ github.ref_name == 'main' }}
needs: [build]
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
name: AppImage-x86_64
- uses: actions/[email protected]
with:
name: AppImage-aarch64
- 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}"
#Version Release
- 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: Release nightly build
uses: softprops/[email protected]
with:
name: "Nightly Build (${{ env.DATE }})"
tag_name: "nightly"
prerelease: true
draft: false
generate_release_notes: false
make_latest: false
files: |
*.AppImage*