Skip to content

Update working Linux distributions #315

Update working Linux distributions

Update working Linux distributions #315

Workflow file for this run

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@v3
- 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
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'