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

Move ARM build to Github Actions #3847

Closed
wants to merge 11 commits into from
Closed
1 change: 0 additions & 1 deletion .astylerc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
--suffix=none

# exclude folders && files
# on Travis these submodules are not checked out when cheking the style
--ignore-exclude-errors
--exclude="lib/ivykis"
--exclude="lib/jsonc"
Expand Down
100 changes: 100 additions & 0 deletions .github/workflows/run-on-arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: arm-docker

on:
pull_request:
push:
workflow_dispatch:
schedule:
- cron: '00 21 * * *'

jobs:
test-arm64:
runs-on: ubuntu-latest
name:
steps:
- name: Checkout syslog-ng source
uses: actions/checkout@v2

- name: Build on multiarch ARM docker image
uses: uraimo/run-on-arch-action@v2.1.1
with:
arch: aarch64
distro: bullseye
githubToken: ${{ github.token }}
install: |
set -x
apt-get update -q -y
apt-get install -q -y \
autoconf-archive \
docbook-xsl \
flex \
gradle \
libcap-dev \
libcurl4-openssl-dev \
libdbd-sqlite3 \
libdbi0-dev \
libesmtp-dev \
libglib2.0-dev \
libhiredis-dev \
libivykis-dev \
librabbitmq-dev \
libmongoc-dev \
libjson-c-dev \
m4 \
python3-dev \
python3-pip \
python3-setuptools \
libnet1-dev \
libriemann-client-dev \
librdkafka-dev \
libwrap0-dev \
pkg-config \
sqlite3 \
xsltproc \
libmaxminddb-dev \
libxml2-utils \
doxygen \
libsnmp-dev \
autopoint \
gcc \
git \
cmake \
make \
automake \
autoconf \
wget \
ca-certificates \
bzip2 \
make \
libbson-dev \
libpcre3-dev \
libssl-dev \
libpaho-mqtt-dev

cd /tmp && wget -q https://github.com/Snaipe/Criterion/releases/download/v2.3.3/criterion-v2.3.3.tar.bz2
tar xf criterion-v2.3.3.tar.bz2
pushd criterion-v2.3.3
cmake .
make -j $(nproc) all
make -j $(nproc) install
popd
rm -rf /tmp/criterion-v2.3.3 /tmp/criterion-v2.3.3.tar.bz2

cd /tmp && wget -q https://ftp.gnu.org/gnu/bison/bison-3.7.6.tar.gz
tar xf bison-3.7.6.tar.gz
pushd bison-3.7.6
./configure --disable-nls
make -j $(nproc) all
make -j $(nproc) install
popd
rm -rf /tmp/bison-3.7.6 /tmp/bison-3.7.6.tar.gz
run: |
python3 -m pip install -q --user --cache-dir=$PWD/pip-cache -r requirements.txt
python3 -m pip list

set -e
cd "${GITHUB_WORKSPACE}"
mkdir build && cd build
cmake -DCMAKE_C_FLAGS=-Werror -DPYTHON_VERSION=3 -DCMAKE_INSTALL_PREFIX=$HOME/install/syslog-ng ..
make --keep-going -j $(nproc) all install
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optional: we do not really required to do install, you can just skip that (some time can be spared there)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true, I'll check it.

ctest -j $(nproc) --output-on-failure
81 changes: 0 additions & 81 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ submit your own.
### Testing

An incredibly useful way to contribute is to test patches and pull
requests - there's only so much [automated testing][ar:travis] can do.
requests - there's only so much [automated testing][ar:CI] can do.
For example, you can help testing on platforms the developers do not
have access to, or try configurations not thought of before.

Expand Down Expand Up @@ -204,11 +204,11 @@ audience.
We also have a [Gitter channel][ar:gitter], where developers hang out.

We use [GitHub issues][ar:issue-tracker] to track issues, feature requests
and patches. We are also using [Travis CI][ar:travis] for automatic
and patches. We are also using [GitHub Actions][ar:CI] for automatic
testing.

[ar:gitter]: https://gitter.im/syslog-ng/syslog-ng
[ar:mailing-list]: http://lists.balabit.com/mailman/listinfo/syslog-ng
[ar:issue-tracker]: https://github.com/syslog-ng/syslog-ng/issues
[ar:issues:good-first-issue]: https://github.com/syslog-ng/syslog-ng/labels/good%20first%20issue
[ar:travis]: https://travis-ci.org/syslog-ng/syslog-ng/
[ar:CI]: https://github.com/syslog-ng/syslog-ng/actions
3 changes: 1 addition & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ EXTRA_DIST = ${BUILT_SOURCES} VERSION NEWS.md autogen.sh \
syslog-ng-ctl/CMakeLists.txt \
requirements.txt \
README.md \
.astylerc \
.travis.yml
.astylerc


pkgconfigdir = $(libdir)/pkgconfig
Expand Down