]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
gha: move the event-based test over from Zuul
authorDaniel Stenberg <daniel@haxx.se>
Mon, 21 Mar 2022 16:39:49 +0000 (17:39 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 21 Mar 2022 16:39:49 +0000 (17:39 +0100)
Switched libssh2 to libssh

Closes #8490

.github/workflows/event-based.yml [new file with mode: 0644]
scripts/zuul/script.sh
zuul.d/jobs.yaml

diff --git a/.github/workflows/event-based.yml b/.github/workflows/event-based.yml
new file mode 100644 (file)
index 0000000..18a2086
--- /dev/null
@@ -0,0 +1,42 @@
+name: event-based
+
+on:
+  # Trigger the workflow on push or pull requests, but only for the
+  # master branch
+  push:
+    branches:
+    - master
+    - '*/ci'
+  pull_request:
+    branches:
+    - master
+
+jobs:
+  autotools:
+    name: ${{ matrix.build.name }}
+    runs-on: 'ubuntu-latest'
+    timeout-minutes: 60
+    strategy:
+      fail-fast: false
+      matrix:
+        build:
+        - name: event tests
+          install:
+          configure: --enable-debug --disable-shared --disable-threaded-resolver --enable-werror --with-libssh --with-openssl
+          tflags: -n -e '!TLS-SRP'
+
+    steps:
+    - run: |
+        sudo apt-get install libtool autoconf automake pkg-config stunnel4 python3-pip libpsl-dev libbrotli-dev libzstd-dev libssh-dev
+        sudo pip3 install impacket
+      name: install prereqs and impacket
+
+    - uses: actions/checkout@v2
+
+    - run: autoreconf -fi && ./configure ${{ matrix.build.configure }} && make V=1
+      name: 'configure and build'
+
+    - run: make V=1 test-ci
+      name: 'test'
+      env:
+        TFLAGS: "${{ matrix.build.tflags }}"
index 3aed44b9da8c0aa54ccd565bdf6f6b5dd625b07e..40090bc0a03926501b3c5abe6c40a2c6a75029df 100755 (executable)
@@ -42,13 +42,6 @@ if [ "$T" = "torture" ]; then
   make "TFLAGS=-n --shallow=20 -t $tests" test-nonflaky
 fi
 
-if [ "$T" = "events" ]; then
-  ./configure --enable-debug --disable-shared --disable-threaded-resolver --enable-code-coverage --enable-werror --with-libssh2 --with-openssl
-  make
-  tests="!TLS-SRP"
-  make "TFLAGS=-n -e $tests" test-nonflaky
-fi
-
 if [ "$T" = "debug" ]; then
   ./configure --enable-debug --enable-werror $C
   make
index 4e8b1148bf96b1ed4ea5aa1044668ba1fc0b41d3..9033c6cab367f5358193235fdc0522dcae3b2ecb 100644 (file)
         CXX: g++-8
         T: torture
 
-- job:
-    name: curl-events
-    parent: curl-base
-    vars:
-      curl_apt_packages:
-        - lcov
-        - libpsl-dev
-        - libssl-dev
-        - libbrotli-dev
-        - libzstd-dev
-        - libssh2-1-dev
-      curl_env:
-        CC: gcc-8
-        CXX: g++-8
-        T: events
-
 - job:
     name: curl-fuzzer
     parent: curl-base
       - curl-cmake-boringssl-quiche
       - curl-cmake-ngtcp2
       - curl-torture
-      - curl-events
       - curl-fuzzer
       - curl-tidy
       - curl-debug-clang-with-openssl-dl-ubsan