Final tweaks #11292
Workflow file for this run
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
# | |
# Build and upload AppImage packages | |
# See also https://github.com/actions/runner-images | |
# | |
name: "AppImage" | |
on: [push] | |
jobs: | |
# AppImage x86_64/Qt5 | |
appimage-amd64-qt5: | |
name: "x86_64 (qt5)" | |
runs-on: ubuntu-20.04 | |
if: "contains(github.event.head_commit.message, '[publish]') || contains(github.ref, 'heads/stellarium-next') || contains(github.ref, 'heads/stellarium-stable')" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Build AppImage | |
working-directory: ${{ github.workspace }} | |
shell: bash | |
run: | | |
# Update installed packages | |
sudo apt remove php7.* -y | |
sudo apt remove php8.* -y | |
sudo apt update | |
# using force-overwrite due to | |
# https://github.com/actions/virtual-environments/issues/2703 | |
#sudo ACCEPT_EULA=Y apt upgrade -o Dpkg::Options::="--force-overwrite" --yes | |
# Installing dependencies | |
sudo apt install -y qtbase5-private-dev qtscript5-dev libqt5svg5-dev qttools5-dev-tools qttools5-dev libqt5opengl5-dev qtmultimedia5-dev libqt5multimedia5-plugins libqt5serialport5 libqt5serialport5-dev qtpositioning5-dev libgps-dev libqt5positioning5 libqt5positioning5-plugins qtwebengine5-dev libqt5charts5-dev zlib1g-dev libgl1-mesa-dev libdrm-dev cmake | |
#sudo pip3 install appimage-builder | |
sudo wget https://github.com/AppImageCrafters/appimage-builder/releases/download/Continuous/appimage-builder-1.1.1.dev32+g2709a3b-x86_64.AppImage -O /usr/local/bin/appimage-builder | |
sudo chmod +x /usr/local/bin/appimage-builder | |
sudo wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /usr/local/bin/appimagetool | |
sudo chmod +x /usr/local/bin/appimagetool | |
# Prepare to building | |
mkdir -p ${{ github.workspace }}/artifact | |
mkdir -p ${{ github.workspace }}/builds/appimage | |
cd ${{ github.workspace }}/builds/appimage | |
export APP_VERSION="latest-qt5" | |
mkdir -p ./AppDir/usr/lib/x86_64-linux-gnu | |
appimage-builder --recipe ${{ github.workspace }}/util/appimage/stellarium-appimage-qt5.yml --skip-test | |
cp ${{ github.workspace }}/builds/appimage/*.AppImage ${{ github.workspace }}/artifact | |
- name: Upload AppImage | |
uses: actions/upload-artifact@v4 | |
if: success() | |
with: | |
name: 'Stellarium-latest-qt5-x86_64' | |
path: ${{ github.workspace }}/artifact/*.AppImage | |
# AppImage x86_64/Qt6 | |
appimage-amd64-qt6: | |
name: "x86_64 (qt6)" | |
runs-on: ubuntu-22.04 | |
if: "contains(github.event.head_commit.message, '[publish]') || contains(github.ref, 'heads/stellarium-next') || contains(github.ref, 'heads/stellarium-stable')" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Build AppImage | |
working-directory: ${{ github.workspace }} | |
shell: bash | |
run: | | |
# Update installed packages | |
sudo apt remove php8.* -y | |
sudo apt update | |
sudo apt install libfuse2 libglx-dev | |
# using force-overwrite due to | |
# https://github.com/actions/virtual-environments/issues/2703 | |
#sudo ACCEPT_EULA=Y apt upgrade -o Dpkg::Options::="--force-overwrite" --yes | |
# Installing dependencies | |
sudo apt install -y cmake zlib1g-dev libgl1-mesa-dev libdrm-dev libxkbcommon-x11-dev libgps-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-pulseaudio gstreamer1.0-libav gstreamer1.0-vaapi qt6-base-private-dev qt6-multimedia-dev qt6-positioning-dev qt6-tools-dev qt6-tools-dev-tools qt6-base-dev-tools qt6-qpa-plugins qt6-image-formats-plugins qt6-l10n-tools qt6-webengine-dev qt6-webengine-dev-tools libqt6charts6-dev libqt6charts6 libqt6opengl6-dev libqt6positioning6-plugins libqt6serialport6-dev qt6-base-dev libqt6webenginecore6-bin libqt6webengine6-data libexiv2-dev libnlopt-cxx-dev | |
#sudo pip3 install appimage-builder | |
sudo wget https://github.com/AppImageCrafters/appimage-builder/releases/download/Continuous/appimage-builder-1.1.1.dev32+g2709a3b-x86_64.AppImage -O /usr/local/bin/appimage-builder | |
sudo chmod +x /usr/local/bin/appimage-builder | |
sudo wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /usr/local/bin/appimagetool | |
sudo chmod +x /usr/local/bin/appimagetool | |
# Prepare to building | |
mkdir -p ${{ github.workspace }}/artifact | |
mkdir -p ${{ github.workspace }}/builds/appimage | |
cd ${{ github.workspace }}/builds/appimage | |
export APP_VERSION="latest-qt6" | |
mkdir -p ./AppDir/usr/lib/x86_64-linux-gnu | |
appimage-builder --recipe ${{ github.workspace }}/util/appimage/stellarium-appimage-qt6.yml --skip-test | |
cp ${{ github.workspace }}/builds/appimage/*.AppImage ${{ github.workspace }}/artifact | |
- name: Upload AppImage | |
uses: actions/upload-artifact@v4 | |
if: success() | |
with: | |
name: 'Stellarium-latest-qt6-x86_64' | |
path: ${{ github.workspace }}/artifact/*.AppImage | |