From patchwork Wed Aug 3 13:54:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mohammad Heib X-Patchwork-Id: 1663374 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=UvjLLYH7; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LyYJT4pd2z9s2R for ; Wed, 3 Aug 2022 23:54:49 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 52E636F8F8; Wed, 3 Aug 2022 13:54:47 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 52E636F8F8 Authentication-Results: smtp3.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=UvjLLYH7 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C7NytC4h3K2B; Wed, 3 Aug 2022 13:54:46 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id 8BB996F8F1; Wed, 3 Aug 2022 13:54:45 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 8BB996F8F1 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 57CB7C0033; Wed, 3 Aug 2022 13:54:45 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 8F384C002D for ; Wed, 3 Aug 2022 13:54:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 5EC1E41B58 for ; Wed, 3 Aug 2022 13:54:43 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 5EC1E41B58 Authentication-Results: smtp4.osuosl.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=UvjLLYH7 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QZrpdapXtret for ; Wed, 3 Aug 2022 13:54:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 2D8F0418A6 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp4.osuosl.org (Postfix) with ESMTPS id 2D8F0418A6 for ; Wed, 3 Aug 2022 13:54:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1659534881; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dNWp+GmanBPQa75V4fkY2n8qBpYO56YITkI23UppWT4=; b=UvjLLYH7R9yhv6fRWqiO0mHD14p7+8T+FZlraJmEShCVGUes6fr5NRl5TIGrkUXaki+Wy1 S+AZAvkO3NPN9hJ9CFxDa0dIaVyLpdHdX+7zWOZyXvNEoAgYKX8elMwA+DN/EDtjL9Ry2E JzdbzAPCDZymzGJ+mvSQm1MzyTlbraI= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-300-vfYxnsKHN4umOqw3BUxlrw-1; Wed, 03 Aug 2022 09:54:40 -0400 X-MC-Unique: vfYxnsKHN4umOqw3BUxlrw-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C2B7A1C05AE7 for ; Wed, 3 Aug 2022 13:54:39 +0000 (UTC) Received: from mheiblap.localdomain.com (unknown [10.35.206.46]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1CB09492C3B; Wed, 3 Aug 2022 13:54:38 +0000 (UTC) From: Mohammad Heib To: dev@openvswitch.org Date: Wed, 3 Aug 2022 16:54:36 +0300 Message-Id: <20220803135436.1947027-1-mheib@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH ovn] CI-Actions: define matrix as a list X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Defining the matrix as a list will make it more readable and easy to extend also users can exclude and add new cases without using include, exclude just add a new combination to the list. Signed-off-by: Mohammad Heib --- .github/workflows/test.yml | 55 ++++++++++++++------------------------ 1 file changed, 20 insertions(+), 35 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 49c20f589..3b7283229 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,43 +19,28 @@ jobs: libssl-dev llvm-dev libelf-dev libnuma-dev libpcap-dev \ selinux-policy-dev ncat python3-scapy isc-dhcp-server m32_dependecies: gcc-multilib - CC: ${{ matrix.compiler }} - LIBS: ${{ matrix.libs }} - M32: ${{ matrix.m32 }} - OPTS: ${{ matrix.opts }} - TESTSUITE: ${{ matrix.testsuite }} - SANITIZERS: ${{ matrix.sanitizers }} - - name: linux ${{ join(matrix.*, ' ') }} + CC: ${{ matrix.cfg.compiler }} + LIBS: ${{ matrix.cfg.libs }} + M32: ${{ matrix.cfg.m32 }} + OPTS: ${{ matrix.cfg.opts }} + TESTSUITE: ${{ matrix.cfg.testsuite }} + SANITIZERS: ${{ matrix.cfg.sanitizers }} + + name: linux ${{ join(matrix.cfg.*, ' ') }} runs-on: ubuntu-20.04 strategy: fail-fast: false matrix: - include: - - compiler: gcc - opts: --disable-ssl - - compiler: clang - opts: --disable-ssl - - - compiler: gcc - testsuite: test - - compiler: gcc - testsuite: system-test - - compiler: clang - testsuite: test - sanitizers: sanitizers - - - compiler: gcc - testsuite: test - libs: -ljemalloc - - compiler: clang - testsuite: test - libs: -ljemalloc - - - compiler: gcc - m32: m32 - opts: --disable-ssl + cfg: + - { compiler: gcc, opts: --disable-ssl } + - { compiler: clang, opts: --disable-ssl } + - { compiler: gcc, testsuite: test } + - { compiler: gcc, testsuite: system-test } + - { compiler: clang, testsuite: test, sanitizers: sanitizers } + - { compiler: gcc, testsuite: test, libs: -ljemalloc } + - { compiler: clang, testsuite: test, libs: -ljemalloc } + - { compiler: gcc, m32: m32, opts: --disable-ssl} steps: - name: checkout @@ -89,11 +74,11 @@ jobs: run: sudo apt install -y ${{ env.dependencies }} - name: install libunbound libunwind - if: matrix.m32 == '' + if: matrix.cfg.m32 == '' run: sudo apt install -y libunbound-dev libunwind-dev - name: install 32-bit dependencies - if: matrix.m32 != '' + if: matrix.cfg.m32 != '' run: sudo apt install -y ${{ env.m32_dependecies }} - name: update PATH @@ -131,7 +116,7 @@ jobs: if: failure() || cancelled() uses: actions/upload-artifact@v2 with: - name: logs-linux-${{ join(matrix.*, '-') }} + name: logs-linux-${{ join(matrix.cfg.*, '-') }} path: logs.tgz build-osx: