Appimage #70
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 | |
| concurrency: | |
| group: build-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| schedule: | |
| - cron: "0 7 1/14 * *" | |
| 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/[email protected] | |
| with: | |
| path: ${{ env.CCACHE_DIR }} | |
| key: ${{ runner.os }}-ccache-release-${{ matrix.arch }}-${{ github.sha }} | |
| restore-keys: | | |
| ${{ runner.os }}-ccache-release-${{ 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 | |
| - 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}" | |
| - name: Release Artifacts | |
| uses: softprops/[email protected] | |
| with: | |
| name: "ares: ${{ env.VERSION }}" | |
| tag_name: "${{ env.VERSION }}@${{ env.DATE }}" | |
| prerelease: false | |
| draft: false | |
| generate_release_notes: false | |
| make_latest: true | |
| files: | | |
| *.AppImage* |