-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to use Ubuntu22.04 with newer clang
- Loading branch information
Yan Peng
committed
Nov 1, 2023
1 parent
62e36cd
commit efa5477
Showing
7 changed files
with
84 additions
and
17 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
|
||
FROM ubuntu:22.04 | ||
ENV GOROOT=/usr/local/go | ||
ENV PATH="$GOROOT/bin:$PATH" | ||
ARG GO_VERSION=1.20.1 | ||
ARG GO_ARCHIVE="go${GO_VERSION}.linux-amd64.tar.gz" | ||
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections | ||
RUN apt-get update | ||
RUN apt-get install -y wget unzip git cmake clang llvm python3-pip libncurses5 opam libgmp-dev cabal-install | ||
RUN apt-get install -y g++-aarch64-linux-gnu lld | ||
|
||
RUN wget "https://dl.google.com/go/${GO_ARCHIVE}" && tar -xvf $GO_ARCHIVE && \ | ||
mkdir $GOROOT && mv go/* $GOROOT && rm $GO_ARCHIVE | ||
RUN pip3 install wllvm | ||
RUN pip3 install psutil | ||
|
||
ADD ./SAW/scripts /lc/scripts | ||
RUN /lc/scripts/docker_install.sh | ||
ENV CRYPTOLPATH="../../../cryptol-specs:../../spec" | ||
|
||
# This container expects all files in the directory to be mounted or copied. | ||
# The GitHub action will mount the workspace and set the working directory of the container. | ||
# Another way to mount the files is: docker run -v `pwd`:`pwd` -w `pwd` <name> | ||
|
||
ENTRYPOINT ["./NSym/scripts/docker_entrypoint.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,9 @@ | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: 'AWS-LC Formal Verification NSym Proofs' | ||
description: 'Check NSym proofs to validate some specifications used in AWS-LC' | ||
runs: | ||
using: 'docker' | ||
image: '../Dockerfile.nsym' | ||
entrypoint: 'NSym/scripts/docker_entrypoint.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 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,7 @@ | ||
#!/bin/sh -ex | ||
|
||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
cd NSym | ||
./scripts/build_aarch64.sh "Release" "neoverse-n1" |
Submodule src
updated
84 files