Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman committed Jul 11, 2024
1 parent 2b774a8 commit 6179709
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run build
run: earthly +build
run: earthly +build
env:
EARTHLY_PUSH: ${{ github.ref == 'refs/heads/main' }}
23 changes: 22 additions & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,26 @@ namada:
RUN tar --strip-components 2 -xvzf binaryen.tar.gz binaryen-version_${wasm_opt_version}/bin/wasm-opt
RUN mv wasm-opt /usr/local/bin

wasm:
FROM rust:1.78.0-bookworm

ARG wasm_opt_version=118

WORKDIR /__w/namada/namada

RUN apt-get update -y
RUN apt-get install -y protobuf-compiler
RUN apt-get install -y libudev-dev
RUN apt-get install -y parallel

RUN rustup toolchain install 1.78.0 --profile minimal
RUN rustup target add wasm32-unknown-unknown

# download wasm-opt
RUN curl -o binaryen.tar.gz -LO https://github.com/WebAssembly/binaryen/releases/download/version_${wasm_opt_version}/binaryen-version_${wasm_opt_version}-x86_64-linux.tar.gz
RUN tar --strip-components 2 -xvzf binaryen.tar.gz binaryen-version_${wasm_opt_version}/bin/wasm-opt
RUN mv wasm-opt /usr/local/bin

build:
BUILD +namada
BUILD +namada
BUILD +wasm

0 comments on commit 6179709

Please sign in to comment.