pineapple-pictures/.github/workflows/ubuntu.yml

31 lines
613 B
YAML
Raw Permalink Normal View History

2020-06-18 23:06:15 +08:00
name: Ubuntu 20.04 CI
2020-11-17 19:29:11 +08:00
on: [push, pull_request]
2020-06-18 23:06:15 +08:00
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Get build dept.
run: |
sudo apt update
sudo apt install cmake qtbase5-dev libqt5svg5-dev qttools5-dev libexiv2-dev
2020-06-18 23:06:15 +08:00
- name: Build it
run: |
mkdir build
cd build
cmake ../
make
cpack -G DEB
2020-11-17 19:32:53 +08:00
- name: Try install it
run: |
cd build
sudo apt install ./*.deb
- uses: actions/upload-artifact@v2
with:
name: ubuntu-20.04-deb-package
path: build/*.deb