Skip to content

Create new appimage workflow #9

Create new appimage workflow

Create new appimage workflow #9

Workflow file for this run

name: Build MG AppImage
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches: develop
pull_request:
branches: develop
paths:
- '**appimage.yml'
env:
VERSION: 1
jobs:
build-mg-appimage:
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- linux/amd64
- linux/arm64
- linux/arm/v7
steps:
- name: Checkout MegaGlest
uses: actions/checkout@v4
- if: ${{ ! contains(matrix.platform, 'amd64') }}
uses: docker/setup-qemu-action@v3
- name: Set variables
run: |
if [ -z "$VERSION" ]; then
echo "VERSION=${{ github.sha }}" >> $GITHUB_ENV
fi
- name: Build AppImage
run: |
docker run -t \
--rm \
--platform=${{ matrix.platform }} \
-e HOSTUID=$(id -u) \
-e VERSION \
-v $GITHUB_WORKSPACE:/workspace \
-w /workspace \
andy5995/linuxdeploy:v2 mk/linux/build-appimage.sh
- name: Create sha256sum
run: |
for file in *.AppImage; do
sha256sum "$file" > "$file.sha256sum";
done
- name: Artifact Filename
run: |
PLATFORM=${{ matrix.platform }}
echo "ARTIFACT_NAME=AppImages-${PLATFORM//\//-}" >> $GITHUB_ENV
- name: Upload AppImage
uses: actions/upload-artifact@v4
with:
name: ${{ env.ARTIFACT_NAME }}
path: ./*AppImage*
if-no-files-found: error