From bec1968201fe7f1303b3536f4e492b3f912a2fc1 Mon Sep 17 00:00:00 2001 From: probonopd Date: Mon, 25 Nov 2024 20:58:49 +0100 Subject: [PATCH] Build on Ubuntu Everything in the yml file for ease of understanding. No Docker. For https://github.com/AppImageCommunity/AppImageUpdate/issues/239 --- .github/workflows/ubuntu.yml | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/ubuntu.yml diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml new file mode 100644 index 0000000..aa9edfd --- /dev/null +++ b/.github/workflows/ubuntu.yml @@ -0,0 +1,39 @@ +name: Build AppImageUpdate and AppImageKit + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install dependencies + run: | + sudo apt -y update + sudo apt -y install wget git cmake g++ libcurl4-openssl-dev libx11-dev libz-dev libfuse-dev librsvg2-dev libssl-dev libinotifytools0-dev libarchive-dev liblzma-dev + + - name: Build AppImageUpdate + run: | + git clone --recursive https://github.com/AppImage/AppImageUpdate + cd AppImageUpdate/ + mkdir build/ + cd build/ + cmake -DBUILD_QT_UI=OFF -DCMAKE_INSTALL_PREFIX=/usr .. + make -j$(nproc) + sudo make install + cd .. + + - name: Build AppImageKit + run: | + git clone --recursive https://github.com/AppImage/AppImageKit + cd AppImageKit/ + mkdir build/ + cd build/ + cmake -DUSE_SYSTEM_XZ=ON -DUSE_SYSTEM_INOTIFY_TOOLS=ON -DUSE_SYSTEM_LIBARCHIVE=ON -DUSE_SYSTEM_GTEST=OFF -DCMAKE_INSTALL_PREFIX=/usr .. + make -j$(nproc) + sudo make install