2022-05-11 19:56:03 +08:00
|
|
|
name: Ubuntu CI
|
2020-06-18 23:06:15 +08:00
|
|
|
|
2020-11-17 19:29:11 +08:00
|
|
|
on: [push, pull_request]
|
2020-06-18 23:06:15 +08:00
|
|
|
|
|
|
|
jobs:
|
2022-05-11 19:56:03 +08:00
|
|
|
ubuntu-22-04-build:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
2024-02-16 13:29:43 +08:00
|
|
|
- uses: actions/checkout@v4
|
2022-05-11 19:56:03 +08:00
|
|
|
- name: Get build dept.
|
|
|
|
run: |
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install cmake qtbase5-dev libqt5svg5-dev qttools5-dev libexiv2-dev
|
|
|
|
- name: Build it
|
|
|
|
run: |
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2024-04-05 00:09:49 +08:00
|
|
|
cmake ../ -DPREFER_QT_5=ON
|
2022-05-11 19:56:03 +08:00
|
|
|
make
|
|
|
|
cpack -G DEB
|
|
|
|
- name: Try install it
|
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
sudo apt install ./*.deb
|
2024-02-16 13:29:43 +08:00
|
|
|
- uses: actions/upload-artifact@v4
|
2022-05-11 19:56:03 +08:00
|
|
|
with:
|
|
|
|
name: ubuntu-22.04-deb-package
|
|
|
|
path: build/*.deb
|
2024-05-18 00:22:55 +08:00
|
|
|
|
|
|
|
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
|