Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI test build as github workflow action #517

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/ccpp.yml
@@ -0,0 +1,66 @@
name: C/C++ CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: apt-get install
run: sudo apt-get update && sudo apt-get install -y autopoint gettext libcdk5-dev libaa1-dev libpopt-dev libreadline-dev libjpeg-dev libexif-dev libgphoto2-dev
- name: autoreconf
run: autoreconf -i -f

- name: configure
run: ./configure --prefix=$PWD/__prefix-blank
- name: make
run: NPROC=$(nproc); set -x; make -j$NPROC -l$NPROC
- name: make install
run: NPROC=$(nproc); set -x; make -j$NPROC -l$NPROC install

- name: apt-get install libreadline-dev
run: sudo apt-get install -y libreadline-dev
- name: make distclean
run: make distclean
- name: configure
run: ./configure --prefix=$PWD/__prefix-rl
- name: make
run: NPROC=$(nproc); set -x; make -j$NPROC -l$NPROC
- name: make install
run: NPROC=$(nproc); set -x; make -j$NPROC -l$NPROC install

- name: apt-get install libcdk5-dev
run: sudo apt-get install -y libcdk5-dev
- name: make distclean
run: make distclean
- name: configure
run: ./configure --prefix=$PWD/__prefix-rl-cdk
- name: make
run: NPROC=$(nproc); set -x; make -j$NPROC -l$NPROC
- name: make install
run: NPROC=$(nproc); set -x; make -j$NPROC -l$NPROC install

- name: apt-get install libaa1-dev
run: sudo apt-get install -y libaa1-dev
- name: make distclean
run: make distclean
- name: configure
run: ./configure --prefix=$PWD/__prefix-rl-cdk-aa
- name: make
run: NPROC=$(nproc); set -x; make -j$NPROC -l$NPROC
- name: make install
run: NPROC=$(nproc); set -x; make -j$NPROC -l$NPROC install

#- name: make check
# run: NPROC=$(nproc); set -x; if make -j$NPROC -l$NPROC check; then :; else s=$?; cat tests/testsuite.log; exit "$s"; fi
#- name: make installcheck
# run: NPROC=$(nproc); set -x; make -j$NPROC -l$NPROC installcheck
#- name: make distcheck
# run: NPROC=$(nproc); set -x; make -j$NPROC -l$NPROC distcheck