forked from litalbarkai/open-redatam
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (55 loc) · 1.86 KB
/
build-ubuntu.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Build Ubuntu executables
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up environment on Ubuntu
run: |
sudo apt-get update
sudo apt-get install -y qtbase5-dev
- name: Build redatam and redatamgui on Ubuntu
run: make all
- name: Test redatam with a DIC file on Ubuntu
run: ./redatam test/galapagos/cg15.dic test/galapagos/dic-to-csv
- name: Test redatam with a DICX file on Ubuntu
run: ./redatam test/galapagos/cg15.dicX test/galapagos/dicx-to-csv
- name: Create DEB package on Ubuntu
run: |
mkdir -p package/usr/local/bin
mkdir -p package/usr/share/applications
cp redatam package/usr/local/bin/
cp redatamgui package/usr/local/bin/
chmod +x package/usr/local/bin/redatam
chmod +x package/usr/local/bin/redatamgui
echo "[Desktop Entry]
Version=1.0
Name=Redatam GUI
Exec=/usr/local/bin/redatamgui
Icon=utilities-terminal
Type=Application
Categories=Utility;" > package/usr/share/applications/redatamgui.desktop
mkdir -p package/DEBIAN
echo "Package: redatam
Version: 2.0
Section: base
Priority: optional
Architecture: amd64
Maintainer: Mauricio Pacha Vargas Sepulveda <[email protected]>
Depends: libqt5widgets5
Description: Open Redatam" > package/DEBIAN/control
dpkg-deb --build package open-redatam-ubuntu.deb
- name: Upload DEB on Ubuntu
uses: actions/upload-artifact@v4
with:
name: open-redatam-ubuntu
path: |
open-redatam-ubuntu.deb