[llvm] test with libcxx workflow (PR #71836)

via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 9 13:23:33 PST 2023


https://github.com/EricWF updated https://github.com/llvm/llvm-project/pull/71836

>From f99287d421c3758bc6764b488f770950a989e775 Mon Sep 17 00:00:00 2001
From: eric <eric at efcs.ca>
Date: Thu, 9 Nov 2023 13:15:02 -0500
Subject: [PATCH 01/11] test with libcxx workflow

---
 .../workflows/libcxx-example-workflow.yaml    | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 .github/workflows/libcxx-example-workflow.yaml

diff --git a/.github/workflows/libcxx-example-workflow.yaml b/.github/workflows/libcxx-example-workflow.yaml
new file mode 100644
index 000000000000000..c3a7d3ed20bcd8c
--- /dev/null
+++ b/.github/workflows/libcxx-example-workflow.yaml
@@ -0,0 +1,33 @@
+name: Build and Test libc++
+
+on: pull_request
+
+
+# Comment
+jobs:
+  build:
+    runs-on: libcxx-runners-small
+    steps:
+    - uses: actions/checkout at v4
+      with:
+        fetch-depth: 5
+    - name: Create Paths
+      run: |
+        mkdir build install artifacts
+    - name: Configure
+      run: |
+        cd build
+        cmake -GNinja -DCMAKE_BUILD_TYPE=Release \
+          -DCMAKE_CXX_COMPILER=clang++ \
+          -DCMAKE_C_COMPILER=clang \
+          "-DLLVM_ENABLE_RUNTIMES=libcxx;libcxxabi"\
+          "-DCMAKE_INSTALL_PREFIX=../install" \
+          ../runtimes
+    - name: Build
+      run: |
+        cd build
+        ninja
+    - name: Install
+      run: |
+        cd build
+        ninja install

>From 7184c61d90b86b9f3ae8fcec65f0d7b8772e5fa2 Mon Sep 17 00:00:00 2001
From: eric <eric at efcs.ca>
Date: Thu, 9 Nov 2023 14:51:01 -0500
Subject: [PATCH 02/11] attempt to mimic buildkite pipeline

---
 .../workflows/libcxx-example-workflow.yaml    | 26 +++++--------------
 1 file changed, 6 insertions(+), 20 deletions(-)

diff --git a/.github/workflows/libcxx-example-workflow.yaml b/.github/workflows/libcxx-example-workflow.yaml
index c3a7d3ed20bcd8c..119bbec837684df 100644
--- a/.github/workflows/libcxx-example-workflow.yaml
+++ b/.github/workflows/libcxx-example-workflow.yaml
@@ -6,28 +6,14 @@ on: pull_request
 # Comment
 jobs:
   build:
-    runs-on: libcxx-runners-small
+    runs-on: libcxx-runners-large
     steps:
     - uses: actions/checkout at v4
       with:
         fetch-depth: 5
     - name: Create Paths
-      run: |
-        mkdir build install artifacts
-    - name: Configure
-      run: |
-        cd build
-        cmake -GNinja -DCMAKE_BUILD_TYPE=Release \
-          -DCMAKE_CXX_COMPILER=clang++ \
-          -DCMAKE_C_COMPILER=clang \
-          "-DLLVM_ENABLE_RUNTIMES=libcxx;libcxxabi"\
-          "-DCMAKE_INSTALL_PREFIX=../install" \
-          ../runtimes
-    - name: Build
-      run: |
-        cd build
-        ninja
-    - name: Install
-      run: |
-        cd build
-        ninja install
+      run: libcxx/utils/ci/run-buildbot generic-cxx26
+      env:
+        CC: clang-18
+        CXX: clang++-18
+        CMAKE: /opt/bin/cmake

>From d518bac241f41cbc3bedcaf52ee351ec9cf2f228 Mon Sep 17 00:00:00 2001
From: eric <eric at efcs.ca>
Date: Thu, 9 Nov 2023 15:48:31 -0500
Subject: [PATCH 03/11] attempt matrix

---
 .../workflows/libcxx-example-workflow.yaml    | 23 ++++++++++++++-----
 1 file changed, 17 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/libcxx-example-workflow.yaml b/.github/workflows/libcxx-example-workflow.yaml
index 119bbec837684df..7d501b67ec601c3 100644
--- a/.github/workflows/libcxx-example-workflow.yaml
+++ b/.github/workflows/libcxx-example-workflow.yaml
@@ -5,15 +5,26 @@ on: pull_request
 
 # Comment
 jobs:
-  build:
+  build_and_test:
     runs-on: libcxx-runners-large
+    continue-on-error: false
+    strategy:
+      fail-fast: true
+      matrix:
+        config: ['generic-cxx26', 'generic-cxx03', 'modules']
+        cc: ['clang-18']
+        cxx: ['clang++-18']
+        include:
+          config: 'generic-gcc'
+          cc: 'gcc-13'
+          cxx: 'g++-13'
+      max_concurrency: 2
     steps:
     - uses: actions/checkout at v4
       with:
         fetch-depth: 5
-    - name: Create Paths
-      run: libcxx/utils/ci/run-buildbot generic-cxx26
+    - name: ${{ matrix.config }}
+      run: libcxx/utils/ci/run-buildbot ${{ matrix.config }}
       env:
-        CC: clang-18
-        CXX: clang++-18
-        CMAKE: /opt/bin/cmake
+        CC: ${{ matrix.cc }}
+        CXX: ${{ matrix.cxx }}

>From 0bd6d48c7330985fd8ae049dc6aba8c78c1d68af Mon Sep 17 00:00:00 2001
From: eric <eric at efcs.ca>
Date: Thu, 9 Nov 2023 15:51:12 -0500
Subject: [PATCH 04/11] attempt matrix

---
 .github/workflows/libcxx-example-workflow.yaml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/.github/workflows/libcxx-example-workflow.yaml b/.github/workflows/libcxx-example-workflow.yaml
index 7d501b67ec601c3..45fd21eec20b880 100644
--- a/.github/workflows/libcxx-example-workflow.yaml
+++ b/.github/workflows/libcxx-example-workflow.yaml
@@ -18,7 +18,6 @@ jobs:
           config: 'generic-gcc'
           cc: 'gcc-13'
           cxx: 'g++-13'
-      max_concurrency: 2
     steps:
     - uses: actions/checkout at v4
       with:

>From 5d40ff3ec1a93429044f836fffc9309cee43ac09 Mon Sep 17 00:00:00 2001
From: eric <eric at efcs.ca>
Date: Thu, 9 Nov 2023 15:53:57 -0500
Subject: [PATCH 05/11] attempt matrix

---
 .github/workflows/libcxx-example-workflow.yaml | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/libcxx-example-workflow.yaml b/.github/workflows/libcxx-example-workflow.yaml
index 45fd21eec20b880..d46e82e6ee18e60 100644
--- a/.github/workflows/libcxx-example-workflow.yaml
+++ b/.github/workflows/libcxx-example-workflow.yaml
@@ -1,8 +1,6 @@
 name: Build and Test libc++
 
 on: pull_request
-
-
 # Comment
 jobs:
   build_and_test:
@@ -15,9 +13,9 @@ jobs:
         cc: ['clang-18']
         cxx: ['clang++-18']
         include:
-          config: 'generic-gcc'
-          cc: 'gcc-13'
-          cxx: 'g++-13'
+          - config: 'generic-gcc'
+            cc: 'gcc-13'
+            cxx: 'g++-13'
     steps:
     - uses: actions/checkout at v4
       with:

>From 704d02208d72c7da09b600ba82cbb4ae729bd10c Mon Sep 17 00:00:00 2001
From: eric <eric at efcs.ca>
Date: Thu, 9 Nov 2023 16:01:38 -0500
Subject: [PATCH 06/11] attempt matrix

---
 .github/workflows/libcxx-example-workflow.yaml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/.github/workflows/libcxx-example-workflow.yaml b/.github/workflows/libcxx-example-workflow.yaml
index d46e82e6ee18e60..0b037afd592acf2 100644
--- a/.github/workflows/libcxx-example-workflow.yaml
+++ b/.github/workflows/libcxx-example-workflow.yaml
@@ -1,6 +1,12 @@
 name: Build and Test libc++
 
 on: pull_request
+concurrency: ${{ github.user }}-libcxx
+
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
 # Comment
 jobs:
   build_and_test:
@@ -16,6 +22,9 @@ jobs:
           - config: 'generic-gcc'
             cc: 'gcc-13'
             cxx: 'g++-13'
+      concurrency:
+        group: ${{ github.sha }}-libcxx
+        cancel-in-progress: true
     steps:
     - uses: actions/checkout at v4
       with:

>From 03d5fbcb92508240a74a0a0824346775c0103431 Mon Sep 17 00:00:00 2001
From: eric <eric at efcs.ca>
Date: Thu, 9 Nov 2023 16:02:14 -0500
Subject: [PATCH 07/11] attempt matrix

---
 .github/workflows/libcxx-example-workflow.yaml | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/.github/workflows/libcxx-example-workflow.yaml b/.github/workflows/libcxx-example-workflow.yaml
index 0b037afd592acf2..c9ade624c9ac8ef 100644
--- a/.github/workflows/libcxx-example-workflow.yaml
+++ b/.github/workflows/libcxx-example-workflow.yaml
@@ -4,9 +4,6 @@ on: pull_request
 concurrency: ${{ github.user }}-libcxx
 
 
-concurrency:
-  group: ${{ github.workflow }}-${{ github.ref }}
-  cancel-in-progress: true
 # Comment
 jobs:
   build_and_test:

>From 43091cfd5186d8e77b52d6ae7c7ee0e530ce773a Mon Sep 17 00:00:00 2001
From: eric <eric at efcs.ca>
Date: Thu, 9 Nov 2023 16:02:44 -0500
Subject: [PATCH 08/11] attempt matrix

---
 .github/workflows/libcxx-example-workflow.yaml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/libcxx-example-workflow.yaml b/.github/workflows/libcxx-example-workflow.yaml
index c9ade624c9ac8ef..aa7df709b401f9a 100644
--- a/.github/workflows/libcxx-example-workflow.yaml
+++ b/.github/workflows/libcxx-example-workflow.yaml
@@ -19,9 +19,9 @@ jobs:
           - config: 'generic-gcc'
             cc: 'gcc-13'
             cxx: 'g++-13'
-      concurrency:
-        group: ${{ github.sha }}-libcxx
-        cancel-in-progress: true
+    concurrency:
+      group: ${{ github.sha }}-libcxx
+      cancel-in-progress: true
     steps:
     - uses: actions/checkout at v4
       with:

>From 763db7ccd63143f03694ae1b3cb2e8e8f667057e Mon Sep 17 00:00:00 2001
From: eric <eric at efcs.ca>
Date: Thu, 9 Nov 2023 16:05:11 -0500
Subject: [PATCH 09/11] attempt matrix

---
 .github/workflows/libcxx-example-workflow.yaml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/.github/workflows/libcxx-example-workflow.yaml b/.github/workflows/libcxx-example-workflow.yaml
index aa7df709b401f9a..97c278c367c91b2 100644
--- a/.github/workflows/libcxx-example-workflow.yaml
+++ b/.github/workflows/libcxx-example-workflow.yaml
@@ -1,7 +1,7 @@
 name: Build and Test libc++
 
 on: pull_request
-concurrency: ${{ github.user }}-libcxx
+concurrency: ${{ github.user }}
 
 
 # Comment
@@ -21,7 +21,6 @@ jobs:
             cxx: 'g++-13'
     concurrency:
       group: ${{ github.sha }}-libcxx
-      cancel-in-progress: true
     steps:
     - uses: actions/checkout at v4
       with:

>From 4911b1406428aec8382ed87e81312626db037d7b Mon Sep 17 00:00:00 2001
From: eric <eric at efcs.ca>
Date: Thu, 9 Nov 2023 16:06:16 -0500
Subject: [PATCH 10/11] attempt matrix

---
 .github/workflows/libcxx-example-workflow.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/libcxx-example-workflow.yaml b/.github/workflows/libcxx-example-workflow.yaml
index 97c278c367c91b2..bbb46b4456acce4 100644
--- a/.github/workflows/libcxx-example-workflow.yaml
+++ b/.github/workflows/libcxx-example-workflow.yaml
@@ -1,7 +1,7 @@
 name: Build and Test libc++
 
 on: pull_request
-concurrency: ${{ github.user }}
+concurrency: ${{ github.actor }}
 
 
 # Comment

>From 83d4e0ecf582abcde4712a444fd2deca3110bec7 Mon Sep 17 00:00:00 2001
From: eric <eric at efcs.ca>
Date: Thu, 9 Nov 2023 16:23:17 -0500
Subject: [PATCH 11/11] attempt matrix

---
 .github/workflows/libcxx-example-workflow.yaml | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/libcxx-example-workflow.yaml b/.github/workflows/libcxx-example-workflow.yaml
index bbb46b4456acce4..8faab624b127f66 100644
--- a/.github/workflows/libcxx-example-workflow.yaml
+++ b/.github/workflows/libcxx-example-workflow.yaml
@@ -1,7 +1,7 @@
 name: Build and Test libc++
 
 on: pull_request
-concurrency: ${{ github.actor }}
+concurrency: ${{ github.actor }}-large-workflow
 
 
 # Comment
@@ -12,15 +12,26 @@ jobs:
     strategy:
       fail-fast: true
       matrix:
-        config: ['generic-cxx26', 'generic-cxx03', 'modules']
+        config: ['generic-cxx26', 'generic-cxx03', 'modules', 'generic-cxx11', 'generic-cxx14', 'generic-cxx17',
+                 'generic-cxx20', 'generic-cxx23', 'asan', 'msan', 'tsan', 'ubsan']
         cc: ['clang-18']
         cxx: ['clang++-18']
         include:
           - config: 'generic-gcc'
             cc: 'gcc-13'
             cxx: 'g++-13'
+          - config: 'generic-gcc-cxx11'
+            cc: 'gcc-13'
+            cxx: 'g++-13'
+          - config: 'generic-cxx23'
+            cc: 'clang-16'
+            cxx: 'clang++-16'
+          - config: 'generic-cxx23'
+            cc: 'clang-17'
+            cxx: 'clang++-17'
     concurrency:
       group: ${{ github.sha }}-libcxx
+    id: ${{ matrix.config }}-${{ matrix.cxx }}
     steps:
     - uses: actions/checkout at v4
       with:



More information about the llvm-commits mailing list