-
Notifications
You must be signed in to change notification settings - Fork 8
74 lines (69 loc) · 2.04 KB
/
build-tests.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
name: Build tests
on:
workflow_dispatch:
push:
branches:
jobs:
build-test-ubuntu:
runs-on: ubuntu-latest
name: Build wendzelnntpd on Ubuntu
container:
image: ubuntu:latest
steps:
- uses: actions/checkout@v4
- name: Install needed packages
run: apt -y update && apt-get install -y gcc flex bison sqlite3 libsqlite3-dev mariadb-client libmariadb-dev-compat ca-certificates libmariadb-dev libmhash-dev make golang-go openssl libssl-dev
- name: Run configuration
run: ./configure
- name: Run make
run: make
- name: Run make install
run: make install
build-test-debian:
runs-on: ubuntu-latest
name: Build wendzelnntpd on Debian
container:
image: debian:stable-slim
steps:
- uses: actions/checkout@v4
- name: Install needed packages
run: apt -y update && apt-get install -y gcc flex bison sqlite3 libsqlite3-dev mariadb-client libmariadb-dev-compat ca-certificates libmariadb-dev libmhash-dev make golang-go openssl libssl-dev
- name: Run configuration
run: ./configure
- name: Run make
run: make
- name: Run make install
run: make install
build-test-openbsd:
runs-on: ubuntu-latest
name: Build wendzelnntpd on OpenBSD
steps:
- uses: actions/checkout@v4
- name: Run in OpenBSD VM
uses: vmactions/openbsd-vm@v1
with:
usesh: true
prepare: |
pkg_add bison
pkg_add mhash
run: |
MYSQL=NO ./configure
make
make install
build-test-freebsd:
runs-on: ubuntu-latest
name: Build wendzelnntpd on FreeBSD
steps:
- uses: actions/checkout@v4
- name: Run in FreeBSD VM
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: |
pkg install -y sqlite3
pkg install -y bison
pkg install -y mhash
run: |
MYSQL=NO ./configure
make
make install