Skip to content

Set Linux workflow to ubuntu-24.04 #119

Set Linux workflow to ubuntu-24.04

Set Linux workflow to ubuntu-24.04 #119

Workflow file for this run

name: Linux build
on:
push:
branches:
- master
- next
- 'next*'
jobs:
qtbuild:
name: Build with Qt
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- run: git fetch --prune --unshallow --tags
- name: Set environment variables
run: |
echo "DATE=`date +%Y%m%d`" >> $GITHUB_ENV
echo "GIT_HASH=`git rev-parse --short HEAD`" >> $GITHUB_ENV
cat $GITHUB_ENV
- name: Display environment variables
run: env | sort
- name: Prepare flatpak build
run: |
set -x
# Install build dependencies
sudo apt-get -y install flatpak-builder appstream-compose
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
- name: Build
id: build
run: |
# Create welle-gui Flatpak
flatpak-builder --force-clean --user --install-deps-from=flathub --repo=repo --install builddir io.welle.welle_io.yml
flatpak build-bundle repo welle-io.flatpak io.welle.welle_io --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo
# Prepare publish
mkdir publish
mv welle-io.flatpak publish/"$DATE"_"$GIT_HASH"_Linux_welle-io-x86_64.flatpak
- name: Archive artifacts (welle.io Flatpak)
uses: actions/upload-artifact@v4
with:
name: welle.io Flatpak
path: publish/*.flatpak
if-no-files-found: error
- name: Upload to nightly server
uses: dennisameling/ftp-upload-action@v1
with:
server: a2f24.netcup.net # welle-io-nightlies.albrechtloh.de is redirected to here
secure: true
username: ${{ secrets.SFTP_USER }}
password: ${{ secrets.SFTP_PASSWORD }}
local_dir: publish/