-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (72 loc) · 2.08 KB
/
appimage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
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*