diff --git a/.github/workflows/layer-build.yaml b/.github/workflows/layer-build.yaml index 214a967..d4a1bd9 100644 --- a/.github/workflows/layer-build.yaml +++ b/.github/workflows/layer-build.yaml @@ -28,8 +28,17 @@ jobs: uses: docker/build-push-action@v6 with: context: . - file: layer-build/Dockerfile + file: layer-build/x86_64.Dockerfile platforms: linux/amd64 push: true tags: | - ghcr.io/metalbear-co/ci-layer-build:latest \ No newline at end of file + ghcr.io/metalbear-co/ci-layer-build:latest + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + file: layer-build/aarch64.Dockerfile + platforms: linux/amd64 + push: true + tags: | + ghcr.io/metalbear-co/ci-layer-build-aarch64:latest \ No newline at end of file diff --git a/layer-build/aarch64.Dockerfile b/layer-build/aarch64.Dockerfile new file mode 100644 index 0000000..33551c6 --- /dev/null +++ b/layer-build/aarch64.Dockerfile @@ -0,0 +1,13 @@ +# Dockerfile used for building mirrord-layer for x64 with very old libc +# this to support centos7 or Amazon Linux 2. + +FROM ghcr.io/cross-rs/aarch64-unknown-linux-gnu:main-centos + +# This fails to compile but tbh shouldn't really change so just stick with old always T_T +RUN yum update -y && \ + yum install centos-release-scl -y && \ + yum install llvm-toolset-7 -y + +ENV LIBCLANG_PATH=/opt/rh/llvm-toolset-7/root/usr/lib64/ \ + LIBCLANG_STATIC_PATH=/opt/rh/llvm-toolset-7/root/usr/lib64/ \ + CLANG_PATH=/opt/rh/llvm-toolset-7/root/usr/bin/clang \ No newline at end of file diff --git a/layer-build/Dockerfile b/layer-build/x86_64.Dockerfile similarity index 100% rename from layer-build/Dockerfile rename to layer-build/x86_64.Dockerfile