From 66a4e365daa21920d982f00c564abef28509df7d Mon Sep 17 00:00:00 2001 From: Oleg Lomaka Date: Wed, 11 Sep 2024 14:32:47 -0400 Subject: [PATCH] builder docker image --- .github/images/Dockerfile.build | 3 +++ .github/images/context.build/.gitkeep | 0 .github/workflows/build.yml | 29 ++++++++++++++++----------- 3 files changed, 20 insertions(+), 12 deletions(-) create mode 100644 .github/images/Dockerfile.build create mode 100644 .github/images/context.build/.gitkeep diff --git a/.github/images/Dockerfile.build b/.github/images/Dockerfile.build new file mode 100644 index 0000000..0bf298a --- /dev/null +++ b/.github/images/Dockerfile.build @@ -0,0 +1,3 @@ +FROM ubuntu:22.04 + +RUN apt-get -y update && apt-get -y install build-essential cmake m4 nasm diff --git a/.github/images/context.build/.gitkeep b/.github/images/context.build/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 12bc7f5..43f8895 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,22 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: docker/setup-qemu-action@v3 -# - uses: docker/setup-buildx-action@v3 + + - uses: docker/setup-buildx-action@v3 + with: + platforms: linux/amd64,linux/arm64 + + - uses: docker/build-push-action@v6 + with: + push: false + outputs: + type=docker + platforms: linux/amd64,linux/arm64 + file: .github/images/Dockerfile.build + context: ./.github/images/context.build + cache-from: type=gha + cache-to: type=gha,mode=max + tags: builder:latest - run: docker run --platform=linux/arm64 ubuntu uname -a @@ -172,18 +187,8 @@ jobs: zip -r rapidsnark-linux-x86_64-${{ github.ref_name }}.zip rapidsnark-linux-x86_64-${{ github.ref_name }} gh release upload ${{ github.event.release.tag_name }} rapidsnark-linux-x86_64-${{ github.ref_name }}.zip - build-apple-1: - runs-on: macos-14 - steps: - - run: uname -a - - build-apple-2: - runs-on: macos-13 - steps: - - run: uname -a - build-apple-arm64: - runs-on: macos-13-xlarge + runs-on: macos-14 if: false steps: - uses: actions/checkout@v4