-
Notifications
You must be signed in to change notification settings - Fork 465
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
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ff935cb
github-actions: migrate ARM build from Travis CI to github-actions
4a7e2cb
CONTRIBUTING: replace CI references from Travis to GitHub Actions
1bb9413
github-actions: enabling caching the docker images in Github Packages
b65bfcb
github-actions: move run-on-arm to Debian Bullseye
544bd9b
github-actions: install additional dependencies in run-on-arm workflow
87c1481
github-actions: install criterion from release tarball
d125d1b
github-actions: build bison under /tmp/ too in run-on-arm
9530a00
github-actions: add parallel build to all steps in run-on-arm
4cfc853
github-actions/run-on-arm: build criterion and bison during docker im…
a99d95a
github-actions/run-on-arm: use flags from dbld/builddeps for bison build
b0ac078
github-actions/run-on-arm: make pip install silent
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
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
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
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 | ||
ctest -j $(nproc) --output-on-failure |
This file was deleted.
Oops, something went wrong.
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.