run actions only on push/pull #108
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 | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Dependencies | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y libssl-dev libcurl4-openssl-dev libhiredis-dev libmemcached-dev | |
sudo apt-get install -y libjansson-dev libcjose-dev apache2-dev libxml2-dev check pkg-config | |
cd /tmp | |
git clone https://github.com/OpenIDC/liboauth2.git | |
cd liboauth2 | |
./autogen.sh | |
./configure | |
make | |
sudo make install | |
- name: Configure | |
run: | | |
./autogen.sh | |
./configure | |
- name: Make | |
run: make | |
- name: Distcheck | |
run: make distcheck DESTDIR="/tmp/mod_sts" |