-
Notifications
You must be signed in to change notification settings - Fork 18
75 lines (62 loc) · 2 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
name: Build and Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build-linux-openssl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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: configure
env:
CC: /usr/bin/gcc
run: ./configure --enable-debug --enable-maintainer --with-tls=openssl || (cat config.log; pkg-config --list-all; exit 1)
- name: make
run: make
- name: test
run: make test || cat cups/test.log
build-linux-gnutls:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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: configure
env:
CC: /usr/bin/gcc
run: ./configure --enable-debug --enable-maintainer --with-tls=gnutls || (cat config.log; pkg-config --list-all; exit 1)
- name: make
run: make
- name: test
run: make test || cat cups/test.log
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install prerequisites
run: brew install gnutls pkg-config
- name: configure
run: ./configure --enable-debug --enable-maintainer --enable-sanitizer || (cat config.log; pkg-config --list-all; exit 1)
- name: make
run: make
- name: test
run: make test || cat cups/test.log
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: setup-msbuild
uses: microsoft/setup-msbuild@v1.0.2
- name: nuget restore
run: cd vcnet; nuget restore libcups.sln
- name: msbuild
run: cd vcnet; msbuild libcups.sln