Skip to content

Commit

Permalink
feat!: add suite mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Jun 9, 2024
1 parent b188a99 commit 6543ac0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
matrix:
include:
- name: stock
- name: vtk
vtk: "True"
- name: suite
suite: "True"
- name: python
python: "True"
- name: vtk-python
- name: suite-python
python: "True"
vtk: "True"
suite: "True"

name: "🐳 Build Container (🐍: ${{ matrix.python || 'False' }}, 🧰: ${{ matrix.vtk || 'False' }})"
name: "🐳 Build Container (🐍: ${{ matrix.python || 'False' }}, 🧰: ${{ matrix.suite || 'False' }})"

steps:
- name: 📥 Checkout
Expand All @@ -40,6 +40,6 @@ jobs:

- name: ♻️ Publish Images
run: |
docker buildx build --tag vienna-builder --build-arg VTK="${{ matrix.vtk || 'False' }}" --build-arg PYTHON="${{ matrix.python || 'False' }}" --load .
docker buildx build --tag vienna-builder --build-arg SUITE="${{ matrix.vtk || 'False' }}" --build-arg PYTHON="${{ matrix.python || 'False' }}" --load .
docker image tag vienna-builder ghcr.io/viennatools/vienna-builder:${{ matrix.name }}
docker push ghcr.io/viennatools/vienna-builder:${{ matrix.name }}
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ FROM alpine:latest

# Arguments

ARG VTK
ARG SUITE
ARG PYTHON

# Build dependencies

RUN apk add build-base cmake ninja-build musl-dev linux-headers
RUN apk add git docker sed tar

# Conditionally pre-install VTK
# Conditionally pre-install common build dependencies

RUN if [ "$VTK" = "True" ]; then \
apk add vtk-dev; \
RUN if [ "$SUITE" = "True" ]; then \
apk add vtk-dev embree-dev onetbb-dev; \
fi

RUN if [ "$PYTHON" = "True" ]; then \
Expand Down

0 comments on commit 6543ac0

Please sign in to comment.