Use linuxdeploy container [skip ci] #163
This file contains 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: Release Appimage | |
#concurrency: | |
#group: build-${{ github.ref }} | |
#cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "trunk" ] | |
paths-ignore: | |
- '.gitignore' | |
- 'LICENSE' | |
- 'README.md' | |
pull_request: | |
branches: [ "trunk" ] | |
paths-ignore: | |
- '.gitignore' | |
- 'LICENSE' | |
- 'README.md' | |
jobs: | |
# Label of the container job | |
build-appimage: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: | |
- linux/amd64 | |
# - linux/arm64 | |
codename: | |
- focal | |
runs-on: ubuntu-latest | |
env: | |
VERSION: 0.0.26-alpha | |
MINISIGN_KEY: RWTWLbO12+ig3lUExIor3xd6DdZaYFEozn8Bu8nIzY3ImuRYQszIQyyy | |
steps: | |
- uses: actions/checkout@v4 | |
- if: ${{ ! contains(matrix.platform, 'amd64') }} | |
uses: docker/setup-qemu-action@v3 | |
- 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:${{ matrix.codename }} ./workflow.sh | |
- name: Create sha256sum | |
run: | | |
IMAGE_FILENAME=$(basename `find out/*AppImage`) | |
echo "IMAGE_FILENAME=$IMAGE_FILENAME" >> $GITHUB_ENV | |
cd out | |
sha256sum "$IMAGE_FILENAME" > "$IMAGE_FILENAME.sha256sum" | |
- name: Release AppImage | |
if: ${{ github.ref == 'refs/heads/trunk' }} | |
uses: ncipollo/release-action@v1 | |
with: | |
name: 0ad-${{ env.VERSION }} AppImage | |
allowUpdates: True | |
prerelease: ${{ contains(env.VERSION, 'svn') || contains(env.VERSION, 'rc') }} | |
artifacts: ./out/0ad*.AppImage* | |
token: ${{ secrets.GITHUB_TOKEN }} | |
omitNameDuringUpdate: True | |
omitBodyDuringUpdate: True | |
tag: v${{ env.VERSION }} | |
replacesArtifacts: false | |
- name: Upload Artifacts | |
if: ${{ github.ref != 'refs/heads/trunk' }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: AppImage-${{ matrix.platform }} | |
path: ./out/0ad*.AppImage* |