From 738eb8ed2865f1b24c79b2c89f947c713cab6ecd Mon Sep 17 00:00:00 2001 From: Carl Philipp Klemm Date: Thu, 12 Mar 2026 22:34:24 +0100 Subject: [PATCH 1/5] CI: add linux appimage action --- .github/build.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/build.yml diff --git a/.github/build.yml b/.github/build.yml new file mode 100644 index 0000000..756d188 --- /dev/null +++ b/.github/build.yml @@ -0,0 +1,42 @@ +name: Build eismuliplexer for linux +run-name: Building eismuliplexer for linux +on: [push] + +jobs: + Build: + runs-on: ubuntu-latest + steps: + - name: Install dependancies + run: apt update; apt install -y libusb-1.0-0-dev cmake qt6-base-dev qt6-base-dev-tools qt6-tools-dev-tools libqt6widgets6 libqt6multimedia6 wget libglx-dev libgl1-mesa-dev qt6-qpa-plugins + - name: Check out repository code + uses: ischanx/checkout@8c80eac3058d03dc5301629e8f7d59ae255d6cc3 + - name: Checkout libeismultiplexer + run: git clone http://192.168.178.27/git/Eismultiplexer/libeismultiplexer.git + - name: Install Appimagetool + run: | + wget -c https://github.com/$(wget -q https://github.com/probonopd/go-appimage/releases/expanded_assets/continuous -O - | grep "appimagetool-.*-x86_64.AppImage" | head -n 1 | cut -d '"' -f 2) + chmod +x appimagetool-*-x86_64.AppImage + mv appimagetool-*-x86_64.AppImage /usr/bin/appimagetool + - name: Version + id: version + run: | + cd ${{ gitea.workspace }} + git fetch -a; + echo "tag=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_OUTPUT + - name: Build + run: | + mkdir ${{ gitea.workspace }}/build; cd ${{ gitea.workspace }}/build + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install/usr -DGIT_TAG=${{ steps.version.outputs.tag }} .. + make -j $(nproc) + make install + - name: Create Appimage + run: | + cd ${{ gitea.workspace }}/build/ + appimagetool --appimage-extract-and-run -s deploy install/usr/share/applications/xyz.uvos.aceradio.desktop + appimagetool --appimage-extract-and-run -s install + - name: Upload Appimage + uses: actions/upload-artifact@v6 + with: + name: aceradio-appimage + path: ${{ gitea.workspace }}/build/*.AppImage + From f8202fc3ab0b06506b1785f59b628d418ce73c33 Mon Sep 17 00:00:00 2001 From: Carl Philipp Klemm Date: Thu, 12 Mar 2026 22:36:45 +0100 Subject: [PATCH 2/5] move workflow to correct location --- .github/{ => workflows}/build.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{ => workflows}/build.yml (100%) diff --git a/.github/build.yml b/.github/workflows/build.yml similarity index 100% rename from .github/build.yml rename to .github/workflows/build.yml From 67a99070b2aaffc47ae79ca92a564cba8c1530ac Mon Sep 17 00:00:00 2001 From: Carl Philipp Klemm Date: Thu, 12 Mar 2026 22:38:35 +0100 Subject: [PATCH 3/5] We are now running on github not gitea --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 756d188..58e13ea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,23 +20,23 @@ jobs: - name: Version id: version run: | - cd ${{ gitea.workspace }} + cd ${{ github.workspace }} git fetch -a; echo "tag=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_OUTPUT - name: Build run: | - mkdir ${{ gitea.workspace }}/build; cd ${{ gitea.workspace }}/build + mkdir ${{ github.workspace }}/build; cd ${{ github.workspace }}/build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install/usr -DGIT_TAG=${{ steps.version.outputs.tag }} .. make -j $(nproc) make install - name: Create Appimage run: | - cd ${{ gitea.workspace }}/build/ + cd ${{ github.workspace }}/build/ appimagetool --appimage-extract-and-run -s deploy install/usr/share/applications/xyz.uvos.aceradio.desktop appimagetool --appimage-extract-and-run -s install - name: Upload Appimage uses: actions/upload-artifact@v6 with: name: aceradio-appimage - path: ${{ gitea.workspace }}/build/*.AppImage + path: ${{ github.workspace }}/build/*.AppImage From 1f0a6c271856c0da1e5ddf35e2238aa5443dc05c Mon Sep 17 00:00:00 2001 From: Carl Philipp Klemm Date: Thu, 12 Mar 2026 22:41:13 +0100 Subject: [PATCH 4/5] Github needs sudo for apt --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 58e13ea..c9fb341 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Install dependancies - run: apt update; apt install -y libusb-1.0-0-dev cmake qt6-base-dev qt6-base-dev-tools qt6-tools-dev-tools libqt6widgets6 libqt6multimedia6 wget libglx-dev libgl1-mesa-dev qt6-qpa-plugins + run: sudo apt update; sudo apt install -y libusb-1.0-0-dev cmake qt6-base-dev qt6-base-dev-tools qt6-tools-dev-tools libqt6widgets6 libqt6multimedia6 wget libglx-dev libgl1-mesa-dev qt6-qpa-plugins - name: Check out repository code uses: ischanx/checkout@8c80eac3058d03dc5301629e8f7d59ae255d6cc3 - name: Checkout libeismultiplexer From 2118db5fb0e1c232236049abcf187f961b6475d3 Mon Sep 17 00:00:00 2001 From: Carl Philipp Klemm Date: Thu, 12 Mar 2026 22:34:24 +0100 Subject: [PATCH 5/5] CI: add linux appimage action --- .github/workflows/build.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5ba0ee4 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,42 @@ +name: Build eismuliplexer for linux +run-name: Building eismuliplexer for linux +on: [push] + +jobs: + Build: + runs-on: ubuntu-latest + steps: + - name: Install dependancies + run: sudo apt update; sudo apt install -y libusb-1.0-0-dev cmake qt6-base-dev qt6-base-dev-tools qt6-tools-dev-tools libqt6widgets6 libqt6multimedia6 qt6-multimedia-dev ffmpeg wget libglx-dev libgl1-mesa-dev qt6-qpa-plugins + - name: Check out repository code + uses: actions/checkout@v6 + - name: Install Appimagetool + run: | + wget -c https://github.com/$(wget -q https://github.com/probonopd/go-appimage/releases/expanded_assets/continuous -O - | grep "appimagetool-.*-x86_64.AppImage" | head -n 1 | cut -d '"' -f 2) + chmod +x appimagetool-*-x86_64.AppImage + sudo mv appimagetool-*-x86_64.AppImage /usr/bin/appimagetool + - name: Version + id: version + run: | + cd ${{ github.workspace }} + git fetch -a; + echo "tag=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_OUTPUT + - name: Build + run: | + mkdir ${{ github.workspace }}/build; cd ${{ github.workspace }}/build + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install/usr -DGIT_TAG=${{ steps.version.outputs.tag }} .. + make -j $(nproc) + make install + - name: Create Appimage + run: | + cd ${{ github.workspace }}/build/ + install -d install/usr/lib/x86_64-linux-gnu/qt6/plugins/multimedia + cp -vr /lib/x86_64-linux-gnu/qt6/plugins/multimedia/libffmpegmediaplugin.so install/usr/lib/x86_64-linux-gnu/qt6/plugins/multimedia/ + appimagetool --appimage-extract-and-run -s deploy install/usr/share/applications/xyz.uvos.aceradio.desktop + appimagetool --appimage-extract-and-run -s install + - name: Upload Appimage + uses: actions/upload-artifact@v6 + with: + name: aceradio-appimage + path: ${{ github.workspace }}/build/*.AppImage +