Build CI #467
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |