-
Notifications
You must be signed in to change notification settings - Fork 17
57 lines (55 loc) · 1.83 KB
/
build.yaml
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
name: Build CI
on:
push:
pull_request:
schedule:
# build the main branch every Monday morning
- cron: '17 5 * * 1'
workflow_dispatch:
jobs:
build-latest:
runs-on: ${{ matrix.os }}
strategy:
matrix:
compiler: [cc, clang, gcc-12]
os: [ubuntu-latest, macos-latest]
exclude:
- os: macos-latest
compiler: cc
- os: macos-latest
compiler: gcc-12
steps:
- uses: actions/checkout@v4
- name: install macOS autogen prerequisites
run: brew install autoconf automake libtool
if: runner.os == 'macOS'
- name: autogen
run: ./autogen.sh
- name: compiler
run: $CC -v
env:
CC: ${{ matrix.compiler }}
- name: install missing Linux deps
run: sudo apt-get install libtls-dev
if: runner.os == 'Linux'
- name: install missing macOS deps
run: |
brew install libretls openssl@3 rsync
echo "LDFLAGS=-L$(brew --prefix openssl@3)/lib" >> $GITHUB_ENV
echo "CPPFLAGS=-I$(brew --prefix openssl@3)/include" >> $GITHUB_ENV
if: runner.os == 'macOS'
- name: configure
run: ./configure --with-libtls=libtls
env:
CC: ${{ matrix.compiler }}
- name: make
run: make -k
- name: make distcheck
run: make distcheck
if: matrix.compiler == 'cc'
- name: test run rrdp
run: mkdir rpki-cache rpki; src/rpki-client -v -t afrinic.tal -t apnic.tal -t lacnic.tal -t ripe.tal -d rpki-cache rpki
if: runner.os == 'Linux' && matrix.compiler == 'cc'
- name: test run rsync
run: mkdir rpki-cache-rrdp rpki-rrdp; src/rpki-client -vR -t afrinic.tal -t apnic.tal -t lacnic.tal -t ripe.tal -d rpki-cache-rrdp rpki-rrdp
if: runner.os == 'Linux' && matrix.compiler == 'clang'