-
Notifications
You must be signed in to change notification settings - Fork 89
57 lines (53 loc) · 2.23 KB
/
containers.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Celix build containers
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0' # Weekly on Sunday at 00:00 UTC
jobs:
container-conan-build-ubuntu:
runs-on: ubuntu-22.04
timeout-minutes: 120
steps:
- name: Checkout source code
uses: actions/checkout@v3.3.0
- name: Build container image
run: |
docker build -t apache/celix-conan-build:latest --target conan-build -f .devcontainer/Containerfile
- name: Build and test Celix the conan container image
run: |
docker run --rm -v $(pwd):/workspace --userns=keep-id apache/celix-conan-build:latest /bin/bash -c \
"cd /workspace && \
conan build . --build missing --options build_all=True --options enable_address_sanitizer=True \
--options enable_testing=True --options enable_ccache=True --output-folder build \
--conf tools.cmake.cmaketoolchain:generator=Ninja --settings build_type=Debug && \
cd build && \
source conanrun.sh && \
ctest --output-on-failure"
container-apt-build-ubuntu:
runs-on: ubuntu-22.04
timeout-minutes: 120
steps:
- name: Checkout source code
uses: actions/checkout@v3.3.0
- name: Build container image
run: |
docker build -t apache/celix-apt-build:latest --target apt-build -f .devcontainer/Containerfile
- name: Build and test Celix the conan container image
run: |
docker run --rm -v $(pwd):/workspace --userns=keep-id apache/celix-apt-build:latest /bin/bash -c \
"mkdir /workspace/build && cd /workspace/build && \
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_EXPERIMENTAL=ON -DENABLE_TESTING=ON -DRSA_JSON_RPC=ON \
-DRSA_REMOTE_SERVICE_ADMIN_SHM_V2=ON .. && \
make -j && \
ctest --output-on-failure"
build-dev-container-images:
runs-on: ubuntu-22.04
timeout-minutes: 120
steps:
- name: Checkout source code
uses: actions/checkout@v3.3.0
- name: Build dev container images
run: |
docker build -t apache/celix-conan-dev:latest --target conan-dev -f .devcontainer/Containerfile
docker build -t apache/celix-apt-dev:latest --target apt-dev -f .devcontainer/Containerfile