forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: introduce in ci the compilation testing on different os
Changelog-None: introduce in ci the compilation testing on different os Signed-off-by: Vincenzo Palazzo <[email protected]>
- Loading branch information
1 parent
d7ffb71
commit c0c826d
Showing
7 changed files
with
40 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: CI Compilation testing | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- { OS: alpine } | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Integration testing | ||
run: | | ||
docker build -f contrib/docker/Dockerfile.${{matrix.OS}} -t clightning-${{matrix.OS}} . |
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,23 @@ | ||
FROM alpine:3.14.3 | ||
LABEL org.opencontainers.image.authors="Vincenzo Palazzo (@vincenzopalazzo) [email protected]" | ||
|
||
WORKDIR /build | ||
|
||
RUN apk update && \ | ||
apk add ca-certificates alpine-sdk autoconf automake git libtool \ | ||
gmp-dev sqlite-dev python3 py3-mako net-tools zlib-dev libsodium gettext su-exec \ | ||
python3 py3-pip #&& \ | ||
#apk add --upgrade fortify-headers | ||
|
||
RUN mkdir lightning | ||
COPY . lightning | ||
|
||
RUN cd lightning && \ | ||
git submodule update --init --recursive && \ | ||
./configure && \ | ||
pip3 install mrkd mistune==0.8.4 && \ | ||
make -j$(nproc) && \ | ||
make install | ||
|
||
# TODO: review entry point here, to make this availale for the user | ||
CMD ["lightningd", "--version"] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.