Skip to content

Commit

Permalink
Add GitHub workflow that smoke-builds all extensions
Browse files Browse the repository at this point in the history
This is known to pass, today, on x86_64 and fail on aarch64 due to
eclipse-hawkbit#84

Since the goal is to test unreleased HawkBit + unreleased HawkBit extensions,
both are built in sequence to satisfy dependencies that are not available
through maven as releases.

HawkBit tests are skipped to speed up the build process.

Signed-off-by: Zygmunt Krynicki <[email protected]>
  • Loading branch information
zyga committed Feb 1, 2023
1 parent 1723eac commit 3f7d82a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Build against current HawkBit

on:
pull_request:

jobs:
build-without-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Smoke build in docker
uses: docker/build-push-action@v3
with:
push: false
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM ubuntu:22.04 AS build

ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y openjdk-11-jdk-headless maven git

WORKDIR /src
RUN git clone https://github.com/eclipse/hawkbit
WORKDIR /src/hawkbit
RUN mvn --quiet --batch-mode --threads 1C dependency:go-offline dependency:resolve-plugins
RUN mvn --quiet --batch-mode --threads 1C --define=skipTests package
RUN mvn --quiet --batch-mode --threads 1C --define=skipTests --offline install

WORKDIR /src/hawkbit-extensions
COPY . .
RUN mvn --quiet --batch-mode --threads 1C dependency:go-offline dependency:resolve-plugins
RUN mvn --quiet --batch-mode --threads 1C package
RUN mvn --quiet --batch-mode --threads 1C --offline install

0 comments on commit 3f7d82a

Please sign in to comment.