Skip to content

Commit

Permalink
Testing: added compilation tests for all Ubuntu LTS versions >= 16.04 (
Browse files Browse the repository at this point in the history
…#810)

* added tests for all LTS versions of ubuntu since 16.04

* spacing

* spacing :(

* trying to isolate why github isnt' pickup up new tests

* trying to isolate why github isnt' pickup up new tests p2

* trying to isolate why github isnt' pickup up new tests p3

* trying to isolate why github isnt' pickup up new tests p4

* trying to isolate why github isnt' pickup up new tests p5

* trying to isolate why github isnt' pickup up new tests p6

* trying to isolate why github isnt' pickup up new tests p7

* final test?

---------

Co-authored-by: Zakir Durumeric <zakird@gmail.com>
  • Loading branch information
phillip-stephens and zakird committed Mar 6, 2024
1 parent 3038ace commit c7cd5e5
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/cmake.yml
Expand Up @@ -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:
Expand Down
16 changes: 16 additions & 0 deletions .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
16 changes: 16 additions & 0 deletions .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
16 changes: 16 additions & 0 deletions .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
16 changes: 16 additions & 0 deletions .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

0 comments on commit c7cd5e5

Please sign in to comment.