Skip to content

Appimage

Appimage #31

Workflow file for this run

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: "Build AppImage"
arch: x86_64
# - runs-on: ubuntu-24.04-arm
# name: "Build AppImage"
# arch: aarch64
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Make AppImage
run: |
echo 'kernel.apparmor_restrict_unprivileged_userns=0' | sudo tee /etc/sysctl.d/98-apparmor-unuserns.conf
echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
sudo apt install zsync
chmod +x ./*-appimage.sh
./*-appimage.sh
mkdir -p dist
mv *.AppImage* dist/
mv *.AppBundle* dist/
- 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:
name: "release"
needs: [build]
permissions:
actions: read
security-events: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4.3.0
with:
name: AppImage-x86_64
# - uses: actions/download-artifact@v4.3.0
# with:
# name: AppImage-aarch64
- uses: actions/download-artifact@v4.3.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"
- name: Release Artifacts
uses: softprops/action-gh-release@v2.2.2
with:
name: "Lutris: ${{ env.VERSION }}"
tag_name: "${{ env.VERSION }}@${{ env.DATE }}"
prerelease: false
draft: false
generate_release_notes: false
fail_on_unmatched_files: false
make_latest: true
files: |
*.AppImage*
*.AppBundle*
- uses: actions/checkout@v4
- name: Update LATEST_VERSION
run: |
echo "${{ env.VERSION }}" > ./LATEST_VERSION
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add ./LATEST_VERSION
git commit -m 'bump `LATEST_VERSION` [skip ci]'
git push