forked from steveicarus/iverilog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
360ffd8
commit 90c91ea
Showing
1 changed file
with
25 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Run as | ||
# docker build --build-arg REV=$(git rev-parse --short v12-branch) -t iverilog . | ||
# docker create --name temp_container iverilog | ||
# docker cp temp_container:/iverilog-9efd54caf.tgz iverilog-$(git rev-parse --short v12-branch).tgz | ||
# docker rm temp_container | ||
|
||
FROM ubuntu:22.04 | ||
|
||
ARG REV | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV TZ=UTC | ||
|
||
RUN apt update -qq && \ | ||
apt install -y make g++ git bison flex gperf libreadline-dev autoconf python3-sphinx | ||
|
||
WORKDIR /iverilog | ||
|
||
COPY . /iverilog | ||
RUN autoconf | ||
RUN ./configure --prefix=/iverilog-$REV | ||
RUN make -j check | ||
RUN make install | ||
RUN make check | ||
RUN cd / && tar zcf /iverilog-$REV.tgz /iverilog-$REV |