-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into milnes-sigmapi
- Loading branch information
Showing
3,266 changed files
with
118,478 additions
and
547,295 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 was deleted.
Oops, something went wrong.
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
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,58 @@ | ||
FROM ubuntu:24.04 | ||
|
||
RUN apt-get update | ||
|
||
RUN apt-get install -y --no-install-recommends \ | ||
git \ | ||
sudo \ | ||
python3 \ | ||
python-is-python3 \ | ||
opam \ | ||
rustc \ | ||
curl \ | ||
ca-certificates \ | ||
rsync \ | ||
wget \ | ||
&& apt-get clean -y | ||
|
||
# Install the relevant Z3 versions. | ||
COPY ./bin/get_fstar_z3.sh /usr/local/bin | ||
RUN get_fstar_z3.sh /usr/local/bin | ||
|
||
RUN useradd -ms /bin/bash user | ||
RUN echo 'user ALL=NOPASSWD: ALL' >> /etc/sudoers | ||
USER user | ||
WORKDIR /home/user | ||
|
||
# Install OCaml | ||
ARG OCAML_VERSION=4.14.2 | ||
RUN opam init --compiler=$OCAML_VERSION --disable-sandboxing | ||
RUN opam env --set-switch | tee --append $HOME/.profile $HOME/.bashrc $HOME/.bash_profile | ||
RUN opam option depext-run-installs=true | ||
ENV OPAMYES=1 | ||
|
||
# F* dependencies. This is the only place where we read a file from | ||
# the F* repo. | ||
ADD fstar.opam ./fstar.opam | ||
RUN opam install -j$(nproc) --confirm-level=unsafe-yes --deps-only ./fstar.opam && opam clean | ||
|
||
# Some karamel dependencies too. hex for everparse | ||
RUN opam install -j$(nproc) --confirm-level=unsafe-yes fix fileutils visitors camlp4 wasm ulex uucp ctypes ctypes-foreign hex && opam clean | ||
|
||
RUN sudo apt install time | ||
|
||
# Sigh, install dotnet. The setup-dotnet action does not | ||
# work on a container apparently. | ||
ENV DOTNET_ROOT /dotnet | ||
RUN wget -nv https://download.visualstudio.microsoft.com/download/pr/cd0d0a4d-2a6a-4d0d-b42e-dfd3b880e222/008a93f83aba6d1acf75ded3d2cfba24/dotnet-sdk-6.0.400-linux-x64.tar.gz && \ | ||
sudo mkdir -p $DOTNET_ROOT && \ | ||
sudo tar xf dotnet-sdk-6.0.400-linux-x64.tar.gz -C $DOTNET_ROOT && \ | ||
rm -f dotnet-sdk*.tar.gz | ||
RUN sudo ln -s $DOTNET_ROOT/dotnet /usr/local/bin/dotnet | ||
|
||
RUN rm fstar.opam # move up | ||
|
||
# install rust (move up and remove rustv) | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
RUN sudo apt-get update && sudo apt-get install --yes --no-install-recommends llvm-dev libclang-dev clang libgmp-dev pkg-config | ||
RUN . "$HOME/.cargo/env" && rustup component add rustfmt && cargo install bindgen-cli |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
ARG ocaml_version=4.14 | ||
ARG CI_THREADS=24 | ||
|
||
FROM ocaml/opam:ubuntu-20.04-ocaml-$ocaml_version AS fstarbuild | ||
FROM ocaml/opam:ubuntu-22.04-ocaml-$ocaml_version AS fstarbuild | ||
|
||
# Needed for OPAM command below | ||
RUN sudo apt-get update && sudo apt-get install --yes --no-install-recommends \ | ||
|
@@ -15,11 +15,12 @@ RUN opam depext conf-gmp conf-m4 | |
|
||
ADD --chown=opam:opam ./fstar.opam fstar.opam | ||
|
||
# Install opam dependencies only, but not z3 | ||
RUN grep -v z3 < fstar.opam > fstar-no-z3.opam && \ | ||
rm fstar.opam && \ | ||
opam install --deps-only ./fstar-no-z3.opam && \ | ||
rm fstar-no-z3.opam | ||
# Install opam dependencies only | ||
RUN opam install --deps-only ./fstar.opam | ||
|
||
# Install the relevant Z3 versions. | ||
COPY ./bin/get_fstar_z3.sh /usr/local/bin | ||
RUN sudo get_fstar_z3.sh /usr/local/bin | ||
|
||
# Install GitHub CLI | ||
# From https://github.com/cli/cli/blob/trunk/docs/install_linux.md#debian-ubuntu-linux-raspberry-pi-os-apt | ||
|
@@ -32,7 +33,7 @@ RUN { type -p curl >/dev/null || sudo apt-get install curl -y ; } \ | |
|
||
# Install .NET | ||
RUN sudo apt-get update && sudo apt-get install --yes --no-install-recommends \ | ||
libicu66 | ||
libicu70 | ||
|
||
# (for .NET, cf. https://aka.ms/dotnet-missing-libicu ) | ||
# CI dependencies: .NET Core | ||
|
@@ -52,11 +53,6 @@ ENV PATH=${PATH}:$DOTNET_ROOT:$DOTNET_ROOT/tools | |
RUN git config --global user.name "Dzomo, the Everest Yak" && \ | ||
git config --global user.email "[email protected]" | ||
|
||
# Download and extract z3, but do not add it in the PATH | ||
# We download a z3 that does not depend on libgomp | ||
ADD --chown=opam:opam https://github.com/tahina-pro/z3/releases/download/z3-4.8.5-linux-clang/z3-4.8.5-linux-clang-x86_64.tar.gz z3.tar.gz | ||
RUN tar xf z3.tar.gz | ||
|
||
ADD --chown=opam:opam ./ FStar/ | ||
|
||
# Check if we need to create a tag | ||
|
@@ -66,7 +62,7 @@ RUN --mount=type=secret,id=DZOMO_GITHUB_TOKEN eval $(opam env) && env GH_TOKEN=$ | |
RUN eval $(opam env) && env OTHERFLAGS='--admit_smt_queries true' PATH=$HOME/z3:$PATH make -j $CI_THREADS -C FStar package | ||
|
||
# Test the package with its Z3, without OCaml or any other dependency | ||
FROM ubuntu:20.04 AS fstarnoocaml | ||
FROM ubuntu:22.04 AS fstarnoocaml | ||
|
||
# Install some dependencies | ||
RUN apt-get update && \ | ||
|
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.
Oops, something went wrong.