Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
847d7a80
Commit
847d7a80
authored
Apr 25, 2020
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add build script for CMake builds in containers
parent
5bef0b1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
1 deletion
+38
-1
.ci/build.sh
.ci/build.sh
+37
-0
.ci/ubuntu-18.04/Dockerfile
.ci/ubuntu-18.04/Dockerfile
+1
-1
No files found.
.ci/build.sh
0 → 100755
View file @
847d7a80
#!/bin/sh
set
-x
set
-e
# This script expects the CAF source tree under 'sources', builds in 'build' and
# installs to 'bundle'. Additionally, the script expects the CMake pre-load
# script 'cmake-init.txt' in the current working directorys.
InitFile
=
"
$PWD
/cmake-init.txt"
SourceDir
=
"
$PWD
/sources"
BuildDir
=
"
$PWD
/build"
cat
"
$InitFile
"
# Prefer cmake3 over "regular" cmake (cmake == cmake2 on RHEL).
if
command
-v
cmake3
>
/dev/null 2>&1
;
then
CMakeCommand
=
"cmake3"
CTestCommand
=
"ctest3"
elif
command
-v
cmake
>
/dev/null 2>&1
;
then
CMakeCommand
=
"cmake"
CTestCommand
=
"ctest"
else
echo
"No CMake found."
exit
1
fi
# Make sure all directories exist, then enter build directory.
mkdir
-p
"
$BuildDir
"
cd
"
$BuildDir
"
# Run CMake and CTest.
$CMakeCommand
-C
"
$InitFile
"
"
$SourceDir
"
if
[
-z
"
$CAF_NUM_CORES
"
]
;
then
$CMakeCommand
--build
.
--target
install
else
$CMakeCommand
--build
.
--target
install
--
-j
$CAF_NUM_CORES
fi
$CTestCommand
.ci/ubuntu-18.04/Dockerfile
View file @
847d7a80
...
@@ -5,7 +5,7 @@ RUN apt update -y && \
...
@@ -5,7 +5,7 @@ RUN apt update -y && \
RUN
apt
install
-y
\
RUN
apt
install
-y
\
cmake
\
cmake
\
g++-8
g++-8
\
git
\
git
\
libssl-dev
\
libssl-dev
\
make
\
make
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment