commit 72e6da5951a21bfdec459c57f4d5ddf53424641b Author: Brendan Haines Date: Thu Aug 28 22:02:42 2025 -0600 initial commit diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..12b0ef8 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ +name: ci + +on: + push: + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ vars.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - + name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + tags: brendanhaines/iverilog:latest \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ab94669 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,30 @@ +FROM ubuntu:22.04 +RUN \ + apt update && \ + apt install -y autoconf gperf make gcc g++ bison flex && \ + apt clean + +WORKDIR /iverilog + +# BUILD DEV CODE +# RUN git clone --recursive https://github.com/steveicarus/iverilog.git + +# BUILD RELEASED CODE +RUN \ + apt update && \ + apt install -y wget && \ + apt clean +RUN wget https://github.com/steveicarus/iverilog/archive/refs/tags/v12_0.tar.gz && \ + tar -xzf ./v*.tar.gz && \ + mv ./iverilog* ./iverilog + +WORKDIR /iverilog/iverilog + +RUN sh autoconf.sh +RUN ./configure +RUN make + +RUN make check +RUN make install + +ENTRYPOINT [ "bash" ] \ No newline at end of file