forked from NilanjanaLodh/OpenPrinting_CUPS_Backend
-
Notifications
You must be signed in to change notification settings - Fork 16
46 lines (42 loc) · 1.18 KB
/
build.yml
File metadata and controls
46 lines (42 loc) · 1.18 KB
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
name: Build and Test
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
workflow_dispatch:
jobs:
build-linux-run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: show Ubuntu version
run: cat /etc/os-release | grep PRETTY_NAME | awk -F '=' '{print $2}'
- name: update build environment
run: sudo apt-get update --fix-missing -y
- name: install prerequisites
run: |
sudo apt-get install cups libcups2-dev libcupsfilters-dev libglib2.0-dev autoconf autopoint libdbus-1-dev libtool -y
- name: Install cpdb-libs Version >= 2.0.0
run: |
cd ..
mkdir cpdb-libs
wget https://github.com/OpenPrinting/cpdb-libs/releases/download/2.0b8/cpdb-libs-2.0b8.tar.gz
tar -xzf cpdb-libs-2.0b8.tar.gz
cd cpdb-libs-2.0b8
./autogen.sh
./configure --prefix=/usr --enable-shared
make all
sudo make install
cd ..
cd ..
- name: configure
env:
CC: /usr/bin/gcc
run: ./autogen.sh && ./configure --enable-debug
- name: make
run: make
- name: Run Tests
run: make check || cat src/*.log