File tree Expand file tree Collapse file tree 5 files changed +54
-6
lines changed
scripts/docker/buildpack-deps Expand file tree Collapse file tree 5 files changed +54
-6
lines changed Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 2222# (c) 2016-2019 solidity contributors.
2323# ------------------------------------------------------------------------------
2424FROM gcr.io/oss-fuzz-base/base-clang as base
25- LABEL version="1 "
25+ LABEL version="2 "
2626
2727ARG 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+
99111FROM base
100112COPY --from=libraries /usr/lib /usr/lib
101113COPY --from=libraries /usr/bin /usr/bin
Original file line number Diff line number Diff line change 2222# (c) 2016-2019 solidity contributors.
2323# ------------------------------------------------------------------------------
2424FROM buildpack-deps:bionic AS base
25- LABEL version="1 "
25+ LABEL version="2 "
2626
2727ARG 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+
91103FROM base
92104COPY --from=libraries /usr/lib /usr/lib
93105COPY --from=libraries /usr/bin /usr/bin
Original file line number Diff line number Diff line change 2222# (c) 2016-2019 solidity contributors.
2323# ------------------------------------------------------------------------------
2424FROM buildpack-deps:focal AS base
25- LABEL version="1 "
25+ LABEL version="2 "
2626
2727ARG 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+
6072FROM base
6173COPY --from=libraries /usr/lib /usr/lib
6274COPY --from=libraries /usr/bin /usr/bin
Original file line number Diff line number Diff line change 2222# (c) 2016-2019 solidity contributors.
2323# ------------------------------------------------------------------------------
2424FROM buildpack-deps:focal AS base
25- LABEL version="1 "
25+ LABEL version="2 "
2626
2727ARG 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+
6274FROM base
6375COPY --from=libraries /usr/lib /usr/lib
6476COPY --from=libraries /usr/bin /usr/bin
You can’t perform that action at this time.
0 commit comments