From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 802C64620F; Thu, 13 Feb 2025 08:50:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9BD47402A3; Thu, 13 Feb 2025 08:50:29 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 6C1FA42EA1 for ; Thu, 13 Feb 2025 08:50:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1739433028; 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=y+ZXBDEGrHlaPwoP5JmDvdisPgQqaVcD0RDzyDCO1Uc=; b=EjUhpIkmpg/azcg5RL+hb0RmOoHTm1OeNWD725vMaufIwoatsZNjzjK51qevMKEiMZ3SkZ bE1mQ/5DOAgHHx6q9HlEOayh/lL54iNmfe3FNy71Rm2vTHEtSoP4WHVmrDQvFHRaTCrPQE jz99G7/jrn54X1tgtlYFgDQPcCzA/ng= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-418-WuWM6xIKOhW_d_fdEF6_ag-1; Thu, 13 Feb 2025 02:50:24 -0500 X-MC-Unique: WuWM6xIKOhW_d_fdEF6_ag-1 X-Mimecast-MFC-AGG-ID: WuWM6xIKOhW_d_fdEF6_ag Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 8DB6A1975AFC; Thu, 13 Feb 2025 07:50:22 +0000 (UTC) Received: from dmarchan.com (unknown [10.44.33.80]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 6FAEA190C541; Thu, 13 Feb 2025 07:50:19 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: thomas@monjalon.net, andremue@linux.microsoft.com, Aaron Conole , Michael Santana Subject: [PATCH] ci: build with MSVC in GHA Date: Thu, 13 Feb 2025 08:50:10 +0100 Message-ID: <20250213075010.2670431-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: YQM36aOJVvW62qJzrzW1RR-w8gfDd8WDBui3okk5YXY_1739433022 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Add a build target in Windows 2022 for MSVC. Loading MSVC environment and having successive commands in a single (cmd or pwsh) shell does not seem to correctly report if one of the commands failed. For now, load MSVC environment and run commands in separate shells. Signed-off-by: David Marchand --- .github/workflows/build.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dcafb4a8f5..aef692ca1f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -174,6 +174,44 @@ jobs: build/meson-logs/meson-log.txt build/meson-logs/testlog.txt + windows-vm-builds: + name: ${{ join(matrix.config.*, '-') }} + runs-on: ${{ matrix.config.os }} + strategy: + fail-fast: false + matrix: + config: + - os: windows-2022 + compiler: msvc + + steps: + - name: Checkout sources + uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + - name: Install dependencies + run: python -m pip install meson==1.6.1 ninja + - name: Configure + shell: cmd + run: | + call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64 + meson setup -Denable_stdatomic=true build + - name: Build + shell: cmd + run: | + call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64 + meson compile -C build + - name: Upload logs on failure + if: failure() + uses: actions/upload-artifact@v4 + with: + name: meson-logs-${{ join(matrix.config.*, '-') }} + path: | + build/.ninja_log + build/meson-logs/meson-log.txt + prepare-container-images: name: ${{ join(matrix.config.*, '-') }} runs-on: ubuntu-latest -- 2.48.1