From d52f22c0de3b5a3a95f742f4464701bdbf4462e9 Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Sat, 18 May 2024 00:22:55 +0800 Subject: [PATCH] chore(CI): add ubuntu 24.04 build --- .github/workflows/ubuntu.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index ff997ed..f3feb6a 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -4,9 +4,7 @@ on: [push, pull_request] jobs: ubuntu-22-04-build: - runs-on: ubuntu-22.04 - steps: - uses: actions/checkout@v4 - name: Get build dept. @@ -28,3 +26,27 @@ jobs: with: name: ubuntu-22.04-deb-package path: build/*.deb + + ubuntu-24-04-build: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + - name: Get build dept. + run: | + sudo apt update + sudo apt install cmake qt6-base-dev qt6-svg-dev qt6-tools-dev libexiv2-dev + - name: Build it + run: | + mkdir build + cd build + cmake ../ -DPREFER_QT_5=OFF + make + cpack -G DEB + - name: Try install it + run: | + cd build + sudo apt install ./*.deb + - uses: actions/upload-artifact@v4 + with: + name: ubuntu-24.04-deb-package + path: build/*.deb