-
Notifications
You must be signed in to change notification settings - Fork 18
91 lines (78 loc) · 2.58 KB
/
build.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Build and Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build-linux-openssl:
runs-on: ubuntu-latest
steps:
- name: Checkout libcups
uses: actions/checkout@v4
with:
submodules: recursive
- name: Update Build Environment
run: sudo apt-get update --fix-missing -y
- name: Install Prerequisites
run: sudo apt-get install -y avahi-daemon libavahi-client-dev libssl-dev libpam-dev libusb-1.0-0-dev zlib1g-dev
- name: Start Avahi
run: sudo systemctl start avahi-daemon
- name: Configure libcups
env:
CC: /usr/bin/gcc
run: ./configure --enable-debug --enable-debug-printfs --enable-maintainer --with-tls=openssl || (cat config.log; pkg-config --list-all; exit 1)
- name: Make libcups
run: make
- name: Test libcups
run: make test || cat cups/test.log
build-linux-gnutls:
runs-on: ubuntu-latest
steps:
- name: Checkout libcups
uses: actions/checkout@v4
with:
submodules: recursive
- name: Update Build Environment
run: sudo apt-get update --fix-missing -y
- name: Install Prerequisites
run: sudo apt-get install -y avahi-daemon libavahi-client-dev libgnutls28-dev libpam-dev libusb-1.0-0-dev zlib1g-dev
- name: Start Avahi
run: sudo systemctl start avahi-daemon
- name: Configure libcups
env:
CC: /usr/bin/gcc
run: ./configure --enable-debug --enable-debug-printfs --enable-maintainer --with-tls=gnutls || (cat config.log; pkg-config --list-all; exit 1)
- name: Make libcups
run: make
- name: Test libcups
run: make test || cat cups/test.log
build-macos:
runs-on: macos-latest
steps:
- name: Checkout libcups
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install prerequisites
run: brew install gnutls pkg-config
- name: Configure libcups
run: ./configure --enable-debug --enable-debug-printfs --enable-maintainer || (cat config.log; pkg-config --list-all; exit 1)
- name: Make libcups
run: make
- name: Test libcups
run: make test || cat cups/test.log
build-windows:
runs-on: windows-latest
steps:
- name: Checkout libcups
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup msbuild
uses: microsoft/setup-msbuild@v2.0.0
- name: Install Prerequisites
run: cd vcnet; nuget restore libcups.sln; cd ../pdfio; nuget restore
- name: Build libcups
run: cd vcnet; msbuild libcups.sln