This is an automated email from the ASF dual-hosted git repository. rlenferink pushed a commit to branch feature/add-build-job-for-dev-container in repository https://gitbox.apache.org/repos/asf/celix.git
commit d99179a728b529b71b0ca00ec567d300fbdb65c3 Author: Roy Lenferink <[email protected]> AuthorDate: Sun Jan 7 13:35:33 2024 +0100 container: Add container build workflow --- .github/workflows/containers.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml new file mode 100644 index 00000000..95b92eda --- /dev/null +++ b/.github/workflows/containers.yml @@ -0,0 +1,38 @@ +name: Celix development containers + +on: + push: + pull_request: + schedule: + - cron: '0 0 * * 0' # Weekly on Sunday at 00:00 UTC + +jobs: + container-build-ubuntu: + runs-on: ubuntu-22.04 + timeout-minutes: 120 + steps: + - name: Checkout source code + uses: actions/[email protected] + - name: Build container image + run: | + cd $GITHUB_WORKSPACE/container/ + ./build-ubuntu-container.sh + - name: Build Celix using container image + run: | + cd $GITHUB_WORKSPACE/container/ + ./run-ubuntu-container.sh "mkdir -p build && cd build && ../container/support-scripts/build-all.sh && make -j" + - name: Run Celix tests using container image + run: | + cd $GITHUB_WORKSPACE/container/ + ./run-ubuntu-container.sh "cd build && ctest --output-on-failure" + + container-build-gitpod: + runs-on: ubuntu-22.04 + timeout-minutes: 120 + steps: + - name: Checkout source code + uses: actions/[email protected] + - name: Build container image + run: | + cd $GITHUB_WORKSPACE/container/ + docker build -t apache/celix-dev:gitpod-latest -f Containerfile.gitpod .
