diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index f09587f30..9105411fd 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -37,6 +37,46 @@ jobs: working-directory: /zmap run: python3 ./scripts/check_manfile.py + build-ubuntu-16-04: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + - name: Compilation + run: | + docker build -t ubuntu-16.04-container -f .github/workflows/ubuntu-16.04.Dockerfile . + docker run ubuntu-16.04-container + + build-ubuntu-18-04: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + - name: Compilation + run: | + docker build -t ubuntu-18.04-container -f .github/workflows/ubuntu-18.04.Dockerfile . + docker run ubuntu-18.04-container + + build-ubuntu-20-04: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + - name: Compilation + run: | + docker build -t ubuntu-20.04-container -f .github/workflows/ubuntu-20.04.Dockerfile . + docker run ubuntu-20.04-container + + build-ubuntu-22-04: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + - name: Compilation + run: | + docker build -t ubuntu-22.04-container -f .github/workflows/ubuntu-22.04.Dockerfile . + docker run ubuntu-22.04-container + build-debian: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/ubuntu-16.04.Dockerfile b/.github/workflows/ubuntu-16.04.Dockerfile new file mode 100644 index 000000000..769f49e7e --- /dev/null +++ b/.github/workflows/ubuntu-16.04.Dockerfile @@ -0,0 +1,16 @@ +FROM ubuntu:16.04 +# Set non-interactive mode so that apt-get does not prompt for input +ARG DEBIAN_FRONTEND=noninteractive + +RUN apt-get update \ + && apt-get install -y build-essential cmake libgmp3-dev gengetopt libpcap-dev flex \ + byacc libjson-c-dev pkg-config libunistring-dev libjudy-dev cmake make \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + + +WORKDIR /zmap +COPY . . + +RUN cmake -DENABLE_DEVELOPMENT=$ENABLE_DEVELOPMENT -DENABLE_LOG_TRACE=$ENABLE_LOG_TRACE . \ + && make \ No newline at end of file diff --git a/.github/workflows/ubuntu-18.04.Dockerfile b/.github/workflows/ubuntu-18.04.Dockerfile new file mode 100644 index 000000000..769f49e7e --- /dev/null +++ b/.github/workflows/ubuntu-18.04.Dockerfile @@ -0,0 +1,16 @@ +FROM ubuntu:16.04 +# Set non-interactive mode so that apt-get does not prompt for input +ARG DEBIAN_FRONTEND=noninteractive + +RUN apt-get update \ + && apt-get install -y build-essential cmake libgmp3-dev gengetopt libpcap-dev flex \ + byacc libjson-c-dev pkg-config libunistring-dev libjudy-dev cmake make \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + + +WORKDIR /zmap +COPY . . + +RUN cmake -DENABLE_DEVELOPMENT=$ENABLE_DEVELOPMENT -DENABLE_LOG_TRACE=$ENABLE_LOG_TRACE . \ + && make \ No newline at end of file diff --git a/.github/workflows/ubuntu-20.04.Dockerfile b/.github/workflows/ubuntu-20.04.Dockerfile new file mode 100644 index 000000000..769f49e7e --- /dev/null +++ b/.github/workflows/ubuntu-20.04.Dockerfile @@ -0,0 +1,16 @@ +FROM ubuntu:16.04 +# Set non-interactive mode so that apt-get does not prompt for input +ARG DEBIAN_FRONTEND=noninteractive + +RUN apt-get update \ + && apt-get install -y build-essential cmake libgmp3-dev gengetopt libpcap-dev flex \ + byacc libjson-c-dev pkg-config libunistring-dev libjudy-dev cmake make \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + + +WORKDIR /zmap +COPY . . + +RUN cmake -DENABLE_DEVELOPMENT=$ENABLE_DEVELOPMENT -DENABLE_LOG_TRACE=$ENABLE_LOG_TRACE . \ + && make \ No newline at end of file diff --git a/.github/workflows/ubuntu-22.04.Dockerfile b/.github/workflows/ubuntu-22.04.Dockerfile new file mode 100644 index 000000000..769f49e7e --- /dev/null +++ b/.github/workflows/ubuntu-22.04.Dockerfile @@ -0,0 +1,16 @@ +FROM ubuntu:16.04 +# Set non-interactive mode so that apt-get does not prompt for input +ARG DEBIAN_FRONTEND=noninteractive + +RUN apt-get update \ + && apt-get install -y build-essential cmake libgmp3-dev gengetopt libpcap-dev flex \ + byacc libjson-c-dev pkg-config libunistring-dev libjudy-dev cmake make \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + + +WORKDIR /zmap +COPY . . + +RUN cmake -DENABLE_DEVELOPMENT=$ENABLE_DEVELOPMENT -DENABLE_LOG_TRACE=$ENABLE_LOG_TRACE . \ + && make \ No newline at end of file