From 9aaabd62a65f3dad9920fdc9021f09cd8d36ebdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Karas?= Date: Tue, 13 Aug 2024 01:16:45 +0200 Subject: [PATCH] add Github action based on Ubuntu 24.04 --- .../build_and_test_on_ubuntu_24_04.yml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build_and_test_on_ubuntu_24_04.yml diff --git a/.github/workflows/build_and_test_on_ubuntu_24_04.yml b/.github/workflows/build_and_test_on_ubuntu_24_04.yml new file mode 100644 index 0000000..e5de709 --- /dev/null +++ b/.github/workflows/build_and_test_on_ubuntu_24_04.yml @@ -0,0 +1,39 @@ +name: Ubuntu 24.04 + +on: + pull_request: + branches: + - master + push: + branches: + - master + +jobs: + build_gcc_cmake: + name: gcc and cmake + runs-on: ubuntu-24.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: recursive + - name: Install dependencies + run: "sudo apt-get update && sudo apt-get install -y --fix-broken + git make libtool pkg-config cmake libarchive-tools + qtdeclarative5-dev libqt5svg5-dev + qttools5-dev-tools qttools5-dev + qtmultimedia5-dev" + - name: Install libsailfishapp + run: "git clone https://github.com/sailfish-sdk/libsailfishapp.git dependencies/libsailfishapp && + cd dependencies/libsailfishapp && + git checkout tags/0.0.5 -b 0.0.5 && + qmake PREFIX=/usr . && + make && + sudo make install" + - name: Configure build project + run: cmake -B build -DCMAKE_UNITY_BUILD=ON -Wno-dev + - name: Build project + run: cmake --build build -- all + - name: Run tests + run: ctest --output-on-failure + working-directory: build