-
Notifications
You must be signed in to change notification settings - Fork 14
37 lines (31 loc) · 1.28 KB
/
build.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
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- 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 pkg-config
cd /tmp
#curl https://api.github.com/repos/OpenIDC/liboauth2/releases/latest | grep "browser_download_url.*liboauth2_.*jammy_amd64.deb" | cut -d: -f2,3 | tr -d \" | wget -qi -
#curl https://api.github.com/repos/OpenIDC/liboauth2/releases/latest | grep "browser_download_url.*liboauth2-apache_.*jammy_amd64.deb" | cut -d: -f2,3 | tr -d \" | wget -qi -
#curl https://api.github.com/repos/OpenIDC/liboauth2/releases/latest | grep "browser_download_url.*liboauth2-dev_.*jammy_amd64.deb" | cut -d: -f2,3 | tr -d \" | wget -qi -
#sudo apt-get -y install ./*.deb
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_oauth2"