Skip to content

Add Android images

Add Android images #72

name: Building Docker Images
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
- main
workflow_dispatch:
jobs:
build_f3d-ci:
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: ${{ github.ref == 'refs/heads/main' }}
tags: ghcr.io/f3d-app/f3d-ci:latest
file: ci/Dockerfile
build_f3d-wasm:
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: ${{ github.ref == 'refs/heads/main' }}
tags: ghcr.io/f3d-app/f3d-wasm:latest
file: webassembly/Dockerfile
build-args: |
CMAKE_BUILD_PARALLEL_LEVEL=4
ASSIMP_VERSION=v5.4.2
DRACO_VERSION=1.5.7
OCCT_VERSION=V7_8_1
VTK_VERSION=6a898fd91da30d3ff903416bf856f0d1cea82cdf
build_f3d-android:
strategy:
fail-fast: false
matrix:
arch: [arm, arm64, x86, x64]
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: ${{ github.ref == 'refs/heads/main' }}
tags: ghcr.io/f3d-app/f3d-android-${{ matrix.arch }}:latest
file: android/Dockerfile
build-args: |

Check failure on line 77 in .github/workflows/build_docker_image.yml

View workflow run for this annotation

GitHub Actions / Building Docker Images

Invalid workflow file

The workflow is not valid. .github/workflows/build_docker_image.yml (Line: 77, Col: 21): An expression was expected
ANDROID_API=34
ANDROID_ARCH=${{ }}
ANDROID_NDK=r26b
CMAKE_BUILD_PARALLEL_LEVEL=4
ASSIMP_VERSION=v5.4.2
VTK_VERSION=547c6d2d962f466ea1aa3f22b899576926a124f5
${{ matrix.arch == 'arm' && 'ANDROID_ARCH=armeabi-v7a' || null }}
${{ matrix.arch == 'arm64' && 'ANDROID_ARCH=arm64-v8a' || null }}
${{ matrix.arch == 'x86' && 'ANDROID_ARCH=x86' || null }}
${{ matrix.arch == 'x64' && 'ANDROID_ARCH=x86_64' || null }}
build_f3d-superbuild-ci:
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push superbuild
uses: docker/build-push-action@v6
with:
push: ${{ github.ref == 'refs/heads/main' }}
tags: ghcr.io/f3d-app/f3d-superbuild-ci:latest
file: superbuild/Dockerfile
build_f3d-wheels-manylinux-ci:
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push wheels
uses: docker/build-push-action@v6
with:
push: ${{ github.ref == 'refs/heads/main' }}
tags: ghcr.io/f3d-app/f3d-wheels-manylinux-ci:latest
file: wheels-manylinux/Dockerfile