Skip to content

Pack appimage

Pack appimage #50

Workflow file for this run

name: Dev
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
ubuntu-dev:
runs-on: ubuntu-20.04
steps:
- name: Clone
uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v3
- name: Compile
run: |
echo "DD_TIME=DD-$(date +''%Y%m%d%H'')" >> $GITHUB_ENV
sudo apt-get install -y fuse libfuse2
git submodule update --init --recursive
cd oneTBB && git checkout v2021.5.0 && cd ..
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=release -DCOMPILE_TBB=ON ..
make -j"$(nproc)"
- name: AppImage
run: |
echo "version: 1" >> AppImageBuilder.yml
echo "AppDir:" >> AppImageBuilder.yml
echo " path: build/AppDir" >> AppImageBuilder.yml
echo " app_info:" >> AppImageBuilder.yml
echo " id: io.github.tlcfem.damping-dolphin" >> AppImageBuilder.yml
echo " name: damping-dolphin" >> AppImageBuilder.yml
echo " version: 1.0.0" >> AppImageBuilder.yml
echo " exec: usr/bin/damping-dolphin" >> AppImageBuilder.yml
echo " exec_args: \$@" >> AppImageBuilder.yml
echo " files:" >> AppImageBuilder.yml
echo " include:" >> AppImageBuilder.yml
echo " - lib64/ld-linux-x86-64.so.2" >> AppImageBuilder.yml
echo " exclude:" >> AppImageBuilder.yml
echo " - usr/share/man" >> AppImageBuilder.yml
echo " - usr/share/doc/*/README.*" >> AppImageBuilder.yml
echo " - usr/share/doc/*/changelog.*" >> AppImageBuilder.yml
echo " - usr/share/doc/*/NEWS.*" >> AppImageBuilder.yml
echo " - usr/share/doc/*/TODO.*" >> AppImageBuilder.yml
echo " test:" >> AppImageBuilder.yml
echo " fedora-30:" >> AppImageBuilder.yml
echo " image: appimagecrafters/tests-env:fedora-30" >> AppImageBuilder.yml
echo " command: ./AppRun -h" >> AppImageBuilder.yml
echo " debian-stable:" >> AppImageBuilder.yml
echo " image: appimagecrafters/tests-env:debian-stable" >> AppImageBuilder.yml
echo " command: ./AppRun -h" >> AppImageBuilder.yml
echo " archlinux-latest:" >> AppImageBuilder.yml
echo " image: appimagecrafters/tests-env:archlinux-latest" >> AppImageBuilder.yml
echo " command: ./AppRun -h" >> AppImageBuilder.yml
echo " centos-7:" >> AppImageBuilder.yml
echo " image: appimagecrafters/tests-env:centos-7" >> AppImageBuilder.yml
echo " command: ./AppRun -h" >> AppImageBuilder.yml
echo " ubuntu-xenial:" >> AppImageBuilder.yml
echo " image: appimagecrafters/tests-env:ubuntu-xenial" >> AppImageBuilder.yml
echo " command: ./AppRun -h" >> AppImageBuilder.yml
echo "AppImage:" >> AppImageBuilder.yml
echo " arch: x86_64" >> AppImageBuilder.yml
echo " update-information: guess" >> AppImageBuilder.yml
cat AppImageBuilder.yml
- name: Package
run: |
wget -q https://github.com/linuxdeploy/linuxdeploy/releases/download/1-alpha-20220822-1/linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy-x86_64.AppImage
wget -q https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/appimage-builder-1.1.0-x86_64.AppImage
chmod +x appimage-builder-1.1.0-x86_64.AppImage
./linuxdeploy-x86_64.AppImage --appimage-extract-and-run --appdir AppDir --executable build/damping-dolphin -bundle-non-qt-libs -unsupported-allow-new-glibc -no-translations
./appimage-builder-1.1.0-x86_64.AppImage --appimage-extract-and-run --recipe AppImageBuilder.yml --skip-tests
chmod +x damping-dolphin-1.0.0-x86_64.AppImage
- name: Upload
uses: actions/upload-artifact@v3
with:
name: damping-dolphin-1.0.0-x86_64.AppImage
path: damping-dolphin-1.0.0-x86_64.AppImage
- name: Release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: damping-dolphin-1.0.0-x86_64.AppImage
asset_name: damping-dolphin-1.0.0-x86_64.AppImage
tag: ${{ env.DD_TIME }}
prerelease: true
overwrite: true