Skip to content

Commit

Permalink
adding docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
gangatp committed Jan 23, 2024
1 parent e77162c commit 059bd01
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 11 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,24 @@ jobs:
with:
name: bindings.zip
path: build/bindings.zip
build-linux-ubi8-gcc12:
runs-on: ubuntu-20.04
steps:
- run: sudo apt update
- run: sudo apt install -y uuid-dev
- uses: actions/checkout@v2
with:
submodules: true
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
build-macos:
runs-on: macos-latest
steps:
Expand All @@ -41,7 +59,6 @@ jobs:
with:
name: lib3mf.dylib
path: build/lib3mf.dylib

codecoverage-macos:
runs-on: macos-latest
steps:
Expand Down
20 changes: 17 additions & 3 deletions CI/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
FROM martinweismann/lib3mf_ppcbuilds:latest
# Copy this to root folder of lib3mf then build and run this image.
FROM ubuntu:20.04

RUN apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install build-essential uuid-dev wget

RUN wget -qO- "https://cmake.org/files/v3.28/cmake-3.28.1-linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C /usr/local

ADD . lib3mf-repo
ADD CI/script.sh script.sh
ENTRYPOINT ["sh", "script.sh"]

WORKDIR "/lib3mf-repo"

RUN cmake/GenerateMake.sh

WORKDIR "/lib3mf-repo/build"

RUN cmake --build .

RUN ctest -V .
7 changes: 0 additions & 7 deletions CI/script.sh

This file was deleted.

0 comments on commit 059bd01

Please sign in to comment.