CI: add Ubuntu 22.04 build (#55)

* CI: add Ubuntu 22.04 build

* fix: job name cannot contain dot
This commit is contained in:
Gary Wang 2022-05-11 19:56:03 +08:00 committed by GitHub
parent 6bea81f6b8
commit 25c27e080d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,9 @@
name: Ubuntu 20.04 CI
name: Ubuntu CI
on: [push, pull_request]
jobs:
build:
ubuntu-20-04-build:
runs-on: ubuntu-20.04
@ -28,3 +28,29 @@ jobs:
with:
name: ubuntu-20.04-deb-package
path: build/*.deb
ubuntu-22-04-build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- 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
cmake ../
make
cpack -G DEB
- name: Try install it
run: |
cd build
sudo apt install ./*.deb
- uses: actions/upload-artifact@v3
with:
name: ubuntu-22.04-deb-package
path: build/*.deb