e281bd095b6e8a7e5cc31748d4388a7dc04941bf
[geeqie.git] / .github / workflows / appimage-aarch64.yml
1 name: Geeqie aarch64 AppImage build
2 run-name: ${{ github.actor }} is running Geeqie aarch64 AppImage build
3 on: [push]
4 jobs:
5   Build-AppImage:
6     runs-on: ubuntu-latest
7     strategy:
8       matrix:
9         arch: [aarch64]
10         include:
11         - arch: aarch64
12           cpu: cortex-a53
13           base_image: raspios_lite_arm64:latest
14     steps:
15     - uses: actions/checkout@v2
16     - uses: pguyot/arm-runner-action@v2
17       with:
18         base_image: ${{ matrix.base_image }}
19         cpu: ${{ matrix.cpu }}
20         cpu_info: ${{ matrix.cpu_info }}
21         image_additional_mb: 1000
22         bind_mount_repository: false
23         import_github_env: true
24         export_github_env: true
25         copy_artifact_path: geeqie.gz
26         commands: |
27             yes | sudo apt-get update
28             yes | sudo apt-get install build-essential libgtk-3-dev libgtk-3-bin
29             yes | sudo apt-get update
30             yes | sudo apt-get install build-essential libgtk-3-dev libgtk-3-bin
31             yes | sudo apt-get install evince
32             yes | sudo apt-get install libarchive-dev
33             yes | sudo apt-get install libchamplain-0.12-dev libchamplain-gtk-0.12-dev
34             yes | sudo apt-get install libgexiv2-dev
35             yes | sudo apt-get install libgspell-1-dev
36             yes | sudo apt-get install libheif-dev
37             yes | sudo apt-get install liblua5.3-dev
38             yes | sudo apt-get install libpoppler-glib-dev
39             yes | sudo apt-get install libraw-dev libomp-dev
40             yes | sudo apt-get install git
41             yes | sudo apt-get install python3 python3-pip python3-setuptools  python3-wheel ninja-build
42             yes | sudo apt-get install meson
43             yes | sudo apt-get install gettext
44             mkdir -p $GITHUB_WORKSPACE/AppDir
45             mkdir -p $GITHUB_WORKSPACE/AppDir/usr
46             meson setup -Ddevel=disabled -Ddoxygen=disabled -Dgit=disabled -Dyelp-build=disabled -Dprefix=$GITHUB_WORKSPACE/AppDir/usr build
47             ninja -C build install
48             tar -czvf geeqie.gz $GITHUB_WORKSPACE/
49
50     - run: tar -xvf geeqie.gz
51     - run: mkdir -p AppDir
52     - run: cp -var  ./home/runner/work/geeqie/geeqie/AppDir/ .
53     - uses: AppImageCrafters/build-appimage-action@master
54       with:
55         recipe: AppImageBuilder-aarch64.yml
56
57     - uses: ncipollo/release-action@v1
58       with:
59         allowUpdates: true
60         tag: continuous
61         name: Continuous build
62         prerelease: true
63         artifacts: "*.AppImage"
64
65     - uses: actions/upload-artifact@v2
66       if: always()
67       with:
68         name: logs-all-build-appimage
69         path: /home/runner/work/geeqie/geeqie/build/meson-logs/*.txt
70         retention-days: 5