Appimage Nightly #89
This file contains hidden or 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: 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@v5 | |
| - name: Set up ccache for ${{ matrix.arch }} | |
| uses: actions/cache@v4.3.0 | |
| 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/sccache-action@v0.0.9 | |
| - 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/upload-artifact@v4.6.2 | |
| with: | |
| name: AppImage-${{ matrix.arch }} | |
| path: 'dist' | |
| - name: Upload version file | |
| uses: actions/upload-artifact@v4.6.2 | |
| 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/download-artifact@v5.0.0 | |
| with: | |
| name: AppImage-x86_64 | |
| - uses: actions/download-artifact@v5.0.0 | |
| with: | |
| name: AppImage-aarch64 | |
| - uses: actions/download-artifact@v5.0.0 | |
| 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/action-gh-release@v2.3.3 | |
| with: | |
| name: "Nightly Build (${{ env.DATE }})" | |
| tag_name: "nightly" | |
| prerelease: true | |
| draft: false | |
| generate_release_notes: false | |
| make_latest: false | |
| files: | | |
| *.AppImage* |