Skip to content

Commit f6af09e

Browse files
committed
add CI for different architectures (TBD: armv7)
Signed-off-by: Hans Zandbelt <hans.zandbelt@zmartzone.eu>
1 parent 0d9ddba commit f6af09e

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

.github/workflows/archs.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Archs
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
name: ${{ matrix.arch }}
14+
15+
strategy:
16+
matrix:
17+
include:
18+
# - arch: armv7
19+
# distro: ubuntu20.04
20+
#test/check_cache.c:74:F:core:test_cache_redis:0: Assertion 'value == ((void *)0)' failed: value == 0x4006a290, ((void *)0) == 0
21+
#test/check_nginx.c:102:E:core:test_request_context:0: (after this point) Test timeout expired
22+
#test/check_nginx.c:114:E:core:test_nginx_http_response_set:0: (after this point) Received signal 11 (Segmentation fault)
23+
- arch: aarch64
24+
distro: ubuntu20.04
25+
- arch: ppc64le
26+
distro: ubuntu20.04
27+
- arch: s390x
28+
distro: ubuntu20.04
29+
30+
steps:
31+
- uses: actions/checkout@v2.4.0
32+
- uses: uraimo/run-on-arch-action@v2.1.1
33+
name: Build
34+
id: build
35+
with:
36+
arch: ${{ matrix.arch }}
37+
distro: ${{ matrix.distro }}
38+
install: |
39+
apt-get update -y
40+
apt-get install -y apache2-dev libcjose-dev libssl-dev check pkg-config wget
41+
apt-get install -y libjansson-dev libcurl4-openssl-dev libhiredis-dev libmemcached-dev redis-server memcached
42+
apt-get install -y build-essential libpcre3 libpcre3-dev zlib1g zlib1g-dev libgd-dev libxml2 libxml2-dev uuid-dev
43+
cd /tmp
44+
wget --no-check-certificate https://nginx.org/download/nginx-1.18.0.tar.gz
45+
tar zxvf nginx-1.18.0.tar.gz
46+
ln -s nginx-1.18.0 nginx
47+
cd /tmp/nginx && ./configure --with-debug
48+
run: |
49+
./autogen.sh
50+
./configure --with-nginx=/tmp/nginx
51+
service memcached start && service redis-server start && make check || (cat test-suite.log && exit -1)

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- Makefile.am improvements:
44
- move OpenSSL libs go generic libraries so cache files compile with the right flags
55
- use ${srcdir} to conform to distcheck
6+
- add Github Actions CI; remove Travis
67
- bump to 1.4.4dev
78

89
10/12/2021

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[![Build Status](https://github.com/zmartzone/liboauth2/actions/workflows/build.yml/badge.svg)](https://github.com/zmartzone/liboauth2/actions/workflows/build.yml)
2+
[![Architectures Status](https://github.com/zmartzone/liboauth2/actions/workflows/archs.yml/badge.svg)](https://github.com/zmartzone/liboauth2/actions/workflows/archs.yml)
23
[![CodeQL Analysis](https://github.com/zmartzone/liboauth2/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/zmartzone/liboauth2/actions/workflows/codeql-analysis.yml)
34
[![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/zmartzone/liboauth2.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/zmartzone/liboauth2/context:cpp)
45
[![Total alerts](https://img.shields.io/lgtm/alerts/g/zmartzone/liboauth2.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/zmartzone/liboauth2/alerts/)

0 commit comments

Comments
 (0)