-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into lw/remove_circuits_…
…wasm
- Loading branch information
Showing
278 changed files
with
13,651 additions
and
657 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
# Navigate to script folder | ||
cd "$(dirname "$0")" | ||
|
||
(cd cpp && ./bootstrap.sh) | ||
(cd ts && yarn install --immutable && yarn build && npm link) | ||
(cd cpp && ./bootstrap.sh $@) | ||
(cd ts && ./bootstrap.sh $@) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
cd "$(dirname "$0")" | ||
|
||
CMD=${1:-} | ||
|
||
if [ -n "$CMD" ]; then | ||
if [ "$CMD" = "clean" ]; then | ||
git clean -fdx | ||
exit 0 | ||
else | ||
echo "Unknown command: $CMD" | ||
exit 1 | ||
fi | ||
fi | ||
|
||
yarn install --immutable | ||
yarn build | ||
|
||
# Make bin globally available. | ||
npm link |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# At present this doesn't work, as we don't have an alpine wasm toolchain we can use (or it's not directly obvious). | ||
# Keeping this around though, as it would be nice to resolve this in the future. | ||
FROM alpine:latest | ||
RUN apk update && apk add --no-cache \ | ||
build-base \ | ||
curl \ | ||
git \ | ||
cmake \ | ||
lsb-release \ | ||
wget \ | ||
gnupg \ | ||
ninja \ | ||
npm \ | ||
pkgconf \ | ||
openssl-dev \ | ||
jq \ | ||
llvm \ | ||
clang \ | ||
rust \ | ||
cargo \ | ||
bash | ||
RUN npm install -g yarn | ||
WORKDIR /usr/src | ||
COPY . . | ||
RUN ./bootstrap.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM ubuntu:lunar | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt update && apt install -y \ | ||
build-essential \ | ||
curl \ | ||
git \ | ||
cmake \ | ||
lsb-release \ | ||
wget \ | ||
software-properties-common \ | ||
gnupg \ | ||
ninja-build \ | ||
npm \ | ||
pkg-config \ | ||
libssl-dev \ | ||
jq | ||
RUN wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && ./llvm.sh 16 | ||
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
RUN npm install -g yarn | ||
WORKDIR /usr/src | ||
COPY . . | ||
RUN ./bootstrap.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
# This script takes the state of your current repository, and clones it inside of a docker container. | ||
# You likely don't have a fresh clone, and it's paramount that to test bootstrapping, we don't have any | ||
# intermediate build state in the context. | ||
# To achieve this we mount your working directory into the container, and then perform the clone into the container. | ||
# After cloning the repo we build the relevant dockerfile to bootstrap. | ||
# "docker-in-docker" is achieved by mounting the host systems docker socket into the container. | ||
|
||
DOCKERFILE=${1:-Dockerfile.lunar} | ||
|
||
docker build -t bootstrap-build - <<EOF | ||
FROM ubuntu:latest | ||
RUN apt update && apt install -y git rsync docker.io | ||
EOF | ||
|
||
docker run -ti --rm -v/run/user/$UID/docker.sock:/var/run/docker.sock -v$(git rev-parse --show-toplevel):/repo:ro bootstrap-build /bin/bash -c " | ||
# Checkout head. | ||
mkdir /project && cd /project | ||
git init | ||
git remote add origin /repo | ||
git fetch --depth 1 origin HEAD | ||
git checkout FETCH_HEAD | ||
# Copy untracked and modified files, and remove deleted files, from our current repo. | ||
cd /repo | ||
{ git ls-files --others --exclude-standard ; git diff --name-only --diff-filter=TMAR HEAD ; } | rsync -a --files-from=- . /project | ||
for F in \$(git ls-files --deleted); do rm /project/\$F > /dev/null 2>&1; done | ||
cd /project | ||
docker build -f bootstrap/$DOCKERFILE . | ||
" |
Oops, something went wrong.