-
-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (40 loc) · 1.39 KB
/
daemontools-c-cpp.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
name: daemontools Ubuntu, Mac OSX CI
on:
push:
paths:
- '**/daemontools-x/**'
- .github/workflows/daemontools-c-cpp.yml
- '!**/daemontools-x/debian/*'
- '!**/daemontools-x/daemontools.spec.in'
- '!**/daemontools-x/*.9'
- '!**/daemontools-x/*.8'
- '!**/daemontools-x/*.1'
- '!**/doc/*'
- '!**.md'
workflow_dispatch:
jobs:
build:
name: ${{ matrix.host }}-${{ matrix.config.name }}
runs-on: ${{ matrix.host }}
strategy:
fail-fast: false
matrix:
host: [ubuntu-latest, macos-latest]
steps:
- name: extra_packages
run: if [ "${OS}" = "macos-latest" ]; then brew install automake autoconf libtool pkgconfig openssl; fi
env:
OS: ${{ matrix.host }}
- name: checkout_daemontools
uses: actions/checkout@v2
with:
path: main
- name: checkout_qmail
uses: actions/checkout@v2
with:
repository: mbhangui/libqmail
path: libqmail
- name: install_qmail
run: cd libqmail;env CPPFLAGS="-I/opt/homebrew/Cellar/openssl@3/3.3.2/include" LDFLAGS="-L/opt/homebrew/Cellar/openssl@3/3.3.2/lib" ./default.configure; env CPPFLAGS="-I/opt/homebrew/Cellar/openssl@3/3.3.2/include" LDFLAGS="-L/opt/homebrew/Cellar/openssl@3/3.3.2/lib" make; sudo make install-strip
- name: build_daemontools
run: cd main/daemontools-x; ./default.configure; ./qmake