]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
github-ci: use container for 18.04 build 4444/head
authorJason Ish <jason.ish@oisf.net>
Fri, 13 Dec 2019 15:14:35 +0000 (09:14 -0600)
committerJason Ish <jason.ish@oisf.net>
Fri, 13 Dec 2019 21:00:05 +0000 (15:00 -0600)
As the action runs natively on 18.04 we were not explicitly
setting a container, but this means we're using what GitHub
provides us as a default state which might be broken. Instead
use the standard Ubuntu 18.04 container.

.github/workflows/builds.yml

index 10816074a8c04e2b219d5bcf027abd1d7925e9ce..4655280627aeb508193c7a68ce845a3666fa8f9f 100644 (file)
@@ -263,6 +263,7 @@ jobs:
   ubuntu-18-04:
     name: Ubuntu 18.04 (Cocci)
     runs-on: ubuntu-18.04
+    container: ubuntu:18.04
     steps:
 
       # Cache Rust stuff.
@@ -274,13 +275,15 @@ jobs:
 
       - name: Install dependencies
         run: |
-          sudo apt update
-          sudo apt -y install \
+          apt update
+          apt -y install \
                 libpcre3 \
                 libpcre3-dev \
                 build-essential \
                 autoconf \
                 automake \
+                git \
+                jq \
                 libtool \
                 libpcap-dev \
                 libnet1-dev \
@@ -298,15 +301,18 @@ jobs:
                 libevent-dev \
                 libevent-pthreads-2.1.6 \
                 libjansson-dev \
+                libpython2.7 \
                 make \
                 parallel \
+                python3-yaml \
+                rustc \
                 software-properties-common \
                 zlib1g \
                 zlib1g-dev
       - name: Install Coccinelle
         run: |
-          sudo add-apt-repository -y ppa:npalix/coccinelle
-          sudo apt -y install coccinelle
+          add-apt-repository -y ppa:npalix/coccinelle
+          apt -y install coccinelle
       - uses: actions/checkout@v1
       - run: git clone https://github.com/OISF/libhtp -b 0.5.x
       - run: ./autogen.sh
@@ -318,7 +324,7 @@ jobs:
       - name: Fetching suricata-verify
         run: git clone https://github.com/OISF/suricata-verify.git
       - name: Running suricata-verify
-        run: ./suricata-verify/run.py
+        run: python3 ./suricata-verify/run.py
 
   # An Ubuntu 16.04 build using the tarball generated in the CentOS 8
   # build above.