From ffe8304860d9f892695556134981f025ec65ad85 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20M=C3=BCller?= <tmueller@nvidia.com>
Date: Mon, 19 Dec 2022 15:51:54 +0100
Subject: [PATCH] Only upload binaries for Pascal, Turing, Ampere and Ada

Other GPUs are either too old to run performantly (compile at own risk) or are in a datacenter (V100, A100, H100, etc.)
---
 .github/workflows/main.yml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 009a244..10a68fa 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -82,16 +82,19 @@ jobs:
             cuda: "11.5.1"
             arch: 86
             python: "3.11"
+            recommended_gpus: "RTX 3000 and 4000 series (Ampere and Ada)"
           - os: windows-2019
             visual_studio: "Visual Studio 16 2019"
             cuda: "11.5.1"
             arch: 75
             python: "3.10"
+            recommended_gpus: "RTX 2000 series (Turing)"
           - os: windows-2019
             visual_studio: "Visual Studio 16 2019"
             cuda: "11.5.1"
             arch: 70
             python: "3.9"
+            recommended_gpus: "GTX 1000 series (Pascal)"
           - os: windows-2019
             visual_studio: "Visual Studio 16 2019"
             cuda: "11.5.1"
@@ -136,8 +139,9 @@ jobs:
       - name: Build
         working-directory: ${{ env.build_dir }}
         run: cmake --build . --config ${{ env.config }} --target ALL_BUILD --verbose
-      - name: Upload executable
+      - name: Upload binaries
+        if: ${{ matrix.recommended_gpus }}
         uses: actions/upload-artifact@v3
         with:
-          name: Windows binary for CC ${{ matrix.arch }}
+          name: Windows binaries for ${{ matrix.recommended_gpus }}
           path: ${{ env.build_dir }}/testbed.exe
-- 
GitLab