Skip to content

Commit b22e2de

Browse files
committed
Add hera to buildpacks.
1 parent 4a478f0 commit b22e2de

File tree

5 files changed

+54
-6
lines changed

5 files changed

+54
-6
lines changed

.github/workflows/buildpack-deps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
env:
1616
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1717
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
18-
DOCKER_REPOSITORY: solbuildpackpusher/solidity-buildpack-deps
18+
DOCKER_REPOSITORY: docker.pkg.github.com/${{ github.repository }}
1919
IMAGE_NAME: buildpack-deps
2020

2121
runs-on: ubuntu-latest
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Upgrade ${{ env.IMAGE_NAME }}-${{ matrix.image_variant }}
3434
run: |
35-
echo ${DOCKERHUB_TOKEN} | docker login -u solbuildpackpusher --password-stdin
35+
echo ${GITHUB_TOKEN} | docker login docker.pkg.github.com -u ${GITHUB_ACTOR} --password-stdin
3636
scripts/ci/docker_upgrade.sh ${{ env.IMAGE_NAME }} ${{ matrix.image_variant }} ${{ env.DOCKER_REPOSITORY }}
3737
docker logout
3838

scripts/docker/buildpack-deps/Dockerfile.ubuntu1604.clang.ossfuzz

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# (c) 2016-2019 solidity contributors.
2323
#------------------------------------------------------------------------------
2424
FROM gcr.io/oss-fuzz-base/base-clang as base
25-
LABEL version="1"
25+
LABEL version="2"
2626

2727
ARG DEBIAN_FRONTEND=noninteractive
2828

@@ -96,6 +96,18 @@ RUN set -ex; \
9696
ninja install/strip; \
9797
rm -rf /usr/src/evmone
9898

99+
# HERA
100+
RUN set -ex; \
101+
cd /usr/src; \
102+
git clone --branch="v0.3.0" --recurse-submodules https://github.com/ewasm/hera.git; \
103+
cd hera; \
104+
mkdir build; \
105+
cd build; \
106+
cmake -G Ninja -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX="/usr" ..; \
107+
ninja; \
108+
ninja install/strip; \
109+
rm -rf /usr/src/hera
110+
99111
FROM base
100112
COPY --from=libraries /usr/lib /usr/lib
101113
COPY --from=libraries /usr/bin /usr/bin

scripts/docker/buildpack-deps/Dockerfile.ubuntu1804

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# (c) 2016-2019 solidity contributors.
2323
#------------------------------------------------------------------------------
2424
FROM buildpack-deps:bionic AS base
25-
LABEL version="1"
25+
LABEL version="2"
2626

2727
ARG DEBIAN_FRONTEND=noninteractive
2828

@@ -88,6 +88,18 @@ RUN set -ex; \
8888
tar xzpf $TGZFILE -C /usr; \
8989
rm -f $TGZFILE;
9090

91+
# HERA
92+
RUN set -ex; \
93+
cd /usr/src; \
94+
git clone --branch="v0.3.0" --recurse-submodules https://github.com/ewasm/hera.git; \
95+
cd hera; \
96+
mkdir build; \
97+
cd build; \
98+
cmake -G Ninja -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX="/usr" ..; \
99+
ninja; \
100+
ninja install/strip; \
101+
rm -rf /usr/src/hera
102+
91103
FROM base
92104
COPY --from=libraries /usr/lib /usr/lib
93105
COPY --from=libraries /usr/bin /usr/bin

scripts/docker/buildpack-deps/Dockerfile.ubuntu2004

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# (c) 2016-2019 solidity contributors.
2323
#------------------------------------------------------------------------------
2424
FROM buildpack-deps:focal AS base
25-
LABEL version="1"
25+
LABEL version="2"
2626

2727
ARG DEBIAN_FRONTEND=noninteractive
2828

@@ -57,6 +57,18 @@ RUN set -ex; \
5757
ninja install/strip; \
5858
rm -rf /usr/src/evmone
5959

60+
# HERA
61+
RUN set -ex; \
62+
cd /usr/src; \
63+
git clone --branch="v0.3.0" --recurse-submodules https://github.com/ewasm/hera.git; \
64+
cd hera; \
65+
mkdir build; \
66+
cd build; \
67+
cmake -G Ninja -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX="/usr" ..; \
68+
ninja; \
69+
ninja install/strip; \
70+
rm -rf /usr/src/hera
71+
6072
FROM base
6173
COPY --from=libraries /usr/lib /usr/lib
6274
COPY --from=libraries /usr/bin /usr/bin

scripts/docker/buildpack-deps/Dockerfile.ubuntu2004.clang

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# (c) 2016-2019 solidity contributors.
2323
#------------------------------------------------------------------------------
2424
FROM buildpack-deps:focal AS base
25-
LABEL version="1"
25+
LABEL version="2"
2626

2727
ARG DEBIAN_FRONTEND=noninteractive
2828

@@ -59,6 +59,18 @@ RUN set -ex; \
5959
ninja install/strip; \
6060
rm -rf /usr/src/evmone
6161

62+
# HERA
63+
RUN set -ex; \
64+
cd /usr/src; \
65+
git clone --branch="v0.3.0" --recurse-submodules https://github.com/ewasm/hera.git; \
66+
cd hera; \
67+
mkdir build; \
68+
cd build; \
69+
cmake -G Ninja -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX="/usr" ..; \
70+
ninja; \
71+
ninja install/strip; \
72+
rm -rf /usr/src/hera
73+
6274
FROM base
6375
COPY --from=libraries /usr/lib /usr/lib
6476
COPY --from=libraries /usr/bin /usr/bin

0 commit comments

Comments
 (0)