Skip to content

Commit

Permalink
builder docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
olomix committed Sep 11, 2024
1 parent d2021f2 commit 66a4e36
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .github/images/Dockerfile.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM ubuntu:22.04

RUN apt-get -y update && apt-get -y install build-essential cmake m4 nasm
Empty file.
29 changes: 17 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 66a4e36

Please sign in to comment.