From cf7543b3bbd8026e080dbf81d1d78ffa5b2a89ac Mon Sep 17 00:00:00 2001 From: Chris Ohk Date: Sat, 6 May 2023 15:52:05 +0900 Subject: [PATCH 1/5] ci: Update GitHub Actions configuration file for code scan --- .github/workflows/codeql-analysis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 9d0cdb8e4a..455a228810 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -3,7 +3,7 @@ # # You may wish to alter this file to override the set of languages analyzed, # or to provide custom queries or build logic. -name: "CodeQL" +name: Code Scan on: push: @@ -16,8 +16,8 @@ on: jobs: analyze: - name: Analyze runs-on: ubuntu-latest + name: 🔍 Scan - CodeQL strategy: fail-fast: false @@ -50,7 +50,7 @@ jobs: with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. + # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. # queries: ./path/to/local/query, your-org/your-repo/queries@main From 812bd911a8081dfbfda08650279f7920a3789eeb Mon Sep 17 00:00:00 2001 From: Chris Ohk Date: Sat, 6 May 2023 16:03:50 +0900 Subject: [PATCH 2/5] ci: Update GitHub Actions configuration file for static analysis --- .github/workflows/ubuntu-sonarcloud.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ubuntu-sonarcloud.yml b/.github/workflows/ubuntu-sonarcloud.yml index cfeba01f8a..c111d359a8 100644 --- a/.github/workflows/ubuntu-sonarcloud.yml +++ b/.github/workflows/ubuntu-sonarcloud.yml @@ -1,4 +1,4 @@ -name: Ubuntu - SonarCloud +name: Static Analysis on: push: @@ -9,24 +9,25 @@ on: jobs: build-ubuntu: runs-on: ${{ matrix.os }} - name: ${{ matrix.name }} + name: 🌞 Static Analysis - SonarCloud strategy: matrix: include: - # Ubuntu 20.04 + gcc-9 - - name: "Ubuntu 20.04 + gcc-9" + # Ubuntu 20.04 + gcc-10 + - name: "Ubuntu 20.04 + gcc-10" os: ubuntu-20.04 compiler: gcc - version: "9" + version: "10" + steps: - uses: actions/checkout@v2 with: submodules: true - name: Prepare Sonar scanner run: | - wget -nv https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.0.2311-linux.zip - unzip -q sonar-scanner-cli-4.6.0.2311-linux.zip - echo "${PWD}/sonar-scanner-4.6.0.2311-linux/bin/" >> $GITHUB_PATH + wget -nv https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.7.0.2747-linux.zip + unzip -q sonar-scanner-cli-4.7.0.2747-linux.zip + echo "${PWD}/sonar-scanner-4.7.0.2747-linux/bin/" >> $GITHUB_PATH wget -nv https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip unzip -q build-wrapper-linux-x86.zip echo "${PWD}/build-wrapper-linux-x86" >> $GITHUB_PATH From 21735eff42aa78c40d8c423a604e4493902a1e25 Mon Sep 17 00:00:00 2001 From: Chris Ohk Date: Sat, 6 May 2023 16:04:07 +0900 Subject: [PATCH 3/5] ci: Update GitHub Actions configuration file for code coverage --- .github/workflows/ubuntu-codecov.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ubuntu-codecov.yml b/.github/workflows/ubuntu-codecov.yml index 359e71bfb7..a14f95555e 100644 --- a/.github/workflows/ubuntu-codecov.yml +++ b/.github/workflows/ubuntu-codecov.yml @@ -1,4 +1,4 @@ -name: Ubuntu - Codecov +name: Code Coverage on: push: @@ -8,16 +8,18 @@ on: jobs: build-ubuntu: - runs-on: ${{ matrix.os }} - name: ${{ matrix.name }} strategy: matrix: include: - # Ubuntu 20.04 + gcc-9 - - name: "Ubuntu 20.04 + gcc-9" - os: ubuntu-20.04 + # Ubuntu 22.04 + gcc-12 + - name: "Ubuntu 22.04 + gcc-12" + os: ubuntu-22.04 compiler: gcc - version: "9" + version: "12" + + runs-on: ${{ matrix.os }} + name: 🧪 Code Coverage - Codecov + steps: - uses: actions/checkout@v1 with: From a818c2ac4c5bed95e856d566f0e43655ee6f35e3 Mon Sep 17 00:00:00 2001 From: Chris Ohk Date: Sat, 6 May 2023 16:04:18 +0900 Subject: [PATCH 4/5] ci: Update GitHub Actions configuration files for build --- .github/workflows/macos.yml | 54 +++++++++++++----------------- .github/workflows/ubuntu-cuda.yml | 8 +++-- .github/workflows/ubuntu.yml | 48 ++++++++++++++++---------- .github/workflows/windows-cuda.yml | 8 +++-- .github/workflows/windows.yml | 14 ++++---- 5 files changed, 71 insertions(+), 61 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 82fe8bf85f..38080731e7 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -1,4 +1,4 @@ -name: macOS +name: macOS on: push: @@ -8,51 +8,43 @@ on: jobs: build-macos: - runs-on: ${{ matrix.os }} - name: ${{ matrix.name }} strategy: matrix: include: - # macOS 12.4 + Xcode 13.4.1 - - name: "macOS 12.4 + Xcode 13.4.1" + # macOS 12.6.5 + Xcode 14.2 + - name: "macOS 12.6.5 + Xcode 14.2" os: macos-12 compiler: xcode - version: "13.4.1" - # macOS 11.6 + Xcode 13.2.1 - - name: "macOS 11.6 + Xcode 13.2.1" - os: macos-11 + version: "14.2" + # macOS 12.6.5 + Xcode 13.4.1 + - name: "macOS 12.6.5 + Xcode 13.4.1" + os: macos-12 compiler: xcode - version: "13.2.1" - # macOS 11.6 + Xcode 12.5.1 - - name: "macOS 11.6 + Xcode 12.5.1" + version: "13.4.1" + # macOS 11.7.6 + Xcode 12.5.1 + - name: "macOS 11.7.6 + Xcode 12.5.1" os: macos-11 compiler: xcode version: "12.5.1" - # macOS 11.6 + Xcode 11.7 - - name: "macOS 11.6 + Xcode 11.7" - os: macos-11 - compiler: xcode - version: "11.7" - # macOS 12.4 + gcc-11 - - name: "macOS 12.4 + gcc-11" + # macOS 12.6.5 + gcc-12 + - name: "macOS 12.6.5 + gcc-12" os: macos-12 compiler: gcc - version: "11" - # macOS 11.6 + gcc-11 - - name: "macOS 11.6 + gcc-11" - os: macos-11 + version: "12" + # macOS 12.6.5 + gcc-11 + - name: "macOS 12.6.5 + gcc-11" + os: macos-12 compiler: gcc version: "11" - # macOS 11.6 + gcc-10 - - name: "macOS 11.6 + gcc-10" + # macOS 11.7.6 + gcc-10 + - name: "macOS 11.7.6 + gcc-10" os: macos-11 compiler: gcc version: "10" - # macOS 11.6 + gcc-9 - - name: "macOS 11.6 + gcc-9" - os: macos-11 - compiler: gcc - version: "9" + + runs-on: ${{ matrix.os }} + name: 🍎 Build - ${{ matrix.name }} + steps: - uses: actions/checkout@v1 with: @@ -82,4 +74,4 @@ jobs: run: | pip install -r requirements.txt pip install . - python -m pytest Tests/PythonTests/ \ No newline at end of file + python -m pytest Tests/PythonTests/ diff --git a/.github/workflows/ubuntu-cuda.yml b/.github/workflows/ubuntu-cuda.yml index 7a295e5e38..14d8409671 100644 --- a/.github/workflows/ubuntu-cuda.yml +++ b/.github/workflows/ubuntu-cuda.yml @@ -1,4 +1,4 @@ -name: Ubuntu-CUDA +name: Ubuntu-CUDA on: push: @@ -8,8 +8,6 @@ on: jobs: build-ubuntu-cuda: - runs-on: ${{ matrix.os }} - name: ${{ matrix.name }} strategy: matrix: include: @@ -18,6 +16,10 @@ jobs: cuda: "11.7" compiler: gcc version: "10" + + runs-on: ${{ matrix.os }} + name: 👾 Build - ${{ matrix.name }} + steps: - uses: actions/checkout@v1 with: diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 9a6283527f..e449ae9524 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -1,4 +1,4 @@ -name: Ubuntu +name: Ubuntu on: push: @@ -8,31 +8,43 @@ on: jobs: build-ubuntu: - runs-on: ${{ matrix.os }} - name: ${{ matrix.name }} strategy: matrix: include: - # Ubuntu 18.04 + gcc-9 - - name: "Ubuntu 18.04 + gcc-9" - os: ubuntu-18.04 + # Ubuntu 22.04 + gcc-12 + - name: "Ubuntu 22.04 + gcc-12" + os: ubuntu-22.04 + compiler: gcc + version: "12" + # Ubuntu 22.04 + gcc-11 + - name: "Ubuntu 22.04 + gcc-11" + os: ubuntu-22.04 compiler: gcc - version: "9" - # Ubuntu 20.04 + gcc-10 - - name: "Ubuntu 20.04 + gcc-10" - os: ubuntu-20.04 + version: "11" + # Ubuntu 22.04 + gcc-10 + - name: "Ubuntu 22.04 + gcc-10" + os: ubuntu-22.04 compiler: gcc version: "10" - # Ubuntu 18.04 + clang-9 - - name: "Ubuntu 18.04 + clang-9" - os: ubuntu-18.04 + # Ubuntu 22.04 + clang-14 + - name: "Ubuntu 22.04 + clang-14" + os: ubuntu-22.04 compiler: clang - version: "9" - # Ubuntu 20.04 + clang-10 - - name: "Ubuntu 20.04 + clang-10" - os: ubuntu-20.04 + version: "14" + # Ubuntu 22.04 + clang-14 + - name: "Ubuntu 22.04 + clang-13" + os: ubuntu-22.04 compiler: clang - version: "10" + version: "13" + # Ubuntu 22.04 + clang-12 + - name: "Ubuntu 22.04 + clang-12" + os: ubuntu-22.04 + compiler: clang + version: "12" + + runs-on: ${{ matrix.os }} + name: 🐧 Build - ${{ matrix.name }} + steps: - uses: actions/checkout@v1 with: diff --git a/.github/workflows/windows-cuda.yml b/.github/workflows/windows-cuda.yml index d9b9081c87..803b2021f1 100644 --- a/.github/workflows/windows-cuda.yml +++ b/.github/workflows/windows-cuda.yml @@ -1,4 +1,4 @@ -name: Windows-CUDA +name: Windows-CUDA on: push: @@ -8,8 +8,6 @@ on: jobs: build-windows-cuda: - runs-on: ${{ matrix.os }} - name: ${{ matrix.name }} strategy: matrix: include: @@ -25,6 +23,10 @@ jobs: configuration: Release env: CUDA_CACHE_ROOT: "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA" + + runs-on: ${{ matrix.os }} + name: 👾 Build - ${{ matrix.name }} + steps: - uses: actions/checkout@v1 with: diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 21a9260809..fa747f93ec 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -1,4 +1,4 @@ -name: Windows +name: Windows on: push: @@ -8,17 +8,19 @@ on: jobs: build-windows: - runs-on: ${{ matrix.os }} - name: ${{ matrix.name }} strategy: matrix: include: - # Windows Server 2019 + Visual Studio 2019 - - name: "Windows Server 2019 + Visual Studio 2019" - os: windows-2019 # Windows Server 2022 + Visual Studio 2022 - name: "Windows Server 2022 + Visual Studio 2022" os: windows-2022 + # Windows Server 2019 + Visual Studio 2019 + - name: "Windows Server 2019 + Visual Studio 2019" + os: windows-2019 + + runs-on: ${{ matrix.os }} + name: 🪟 Build - ${{ matrix.name }} + steps: - uses: actions/checkout@v1 with: From 256a1509178acac1e26d749334f32d7117b4922d Mon Sep 17 00:00:00 2001 From: Chris Ohk Date: Sat, 6 May 2023 19:35:01 +0900 Subject: [PATCH 5/5] ci: Update the version of operating systems and compilers --- .github/workflows/docs.yml | 2 +- .github/workflows/macos.yml | 15 +++++---------- .github/workflows/ubuntu-codecov.yml | 6 +++--- .github/workflows/ubuntu-cuda.yml | 4 ++-- .github/workflows/ubuntu-sonarcloud.yml | 6 +++--- .github/workflows/ubuntu.yml | 20 ++++++++++---------- 6 files changed, 24 insertions(+), 29 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index f90ed32ea9..e6d6a959c8 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -6,7 +6,7 @@ on: jobs: build-docs: - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 with: diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 38080731e7..5f78df8cd0 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -21,11 +21,11 @@ jobs: os: macos-12 compiler: xcode version: "13.4.1" - # macOS 11.7.6 + Xcode 12.5.1 - - name: "macOS 11.7.6 + Xcode 12.5.1" - os: macos-11 - compiler: xcode - version: "12.5.1" + # macOS 11.7.6 + gcc-10 + - name: "macOS 12.6.5 + gcc-13" + os: macos-12 + compiler: gcc + version: "13" # macOS 12.6.5 + gcc-12 - name: "macOS 12.6.5 + gcc-12" os: macos-12 @@ -36,11 +36,6 @@ jobs: os: macos-12 compiler: gcc version: "11" - # macOS 11.7.6 + gcc-10 - - name: "macOS 11.7.6 + gcc-10" - os: macos-11 - compiler: gcc - version: "10" runs-on: ${{ matrix.os }} name: 🍎 Build - ${{ matrix.name }} diff --git a/.github/workflows/ubuntu-codecov.yml b/.github/workflows/ubuntu-codecov.yml index a14f95555e..6a71993ca8 100644 --- a/.github/workflows/ubuntu-codecov.yml +++ b/.github/workflows/ubuntu-codecov.yml @@ -11,11 +11,11 @@ jobs: strategy: matrix: include: - # Ubuntu 22.04 + gcc-12 - - name: "Ubuntu 22.04 + gcc-12" + # Ubuntu 22.04 + gcc-13 + - name: "Ubuntu 22.04 + gcc-13" os: ubuntu-22.04 compiler: gcc - version: "12" + version: "13" runs-on: ${{ matrix.os }} name: 🧪 Code Coverage - Codecov diff --git a/.github/workflows/ubuntu-cuda.yml b/.github/workflows/ubuntu-cuda.yml index 14d8409671..de1a5074e7 100644 --- a/.github/workflows/ubuntu-cuda.yml +++ b/.github/workflows/ubuntu-cuda.yml @@ -11,8 +11,8 @@ jobs: strategy: matrix: include: - - name: "Ubuntu 20.04 + gcc-10 + CUDA 11.7 (Disable Test)" - os: ubuntu-20.04 + - name: "Ubuntu 22.04 + gcc-10 + CUDA 11.7 (Disable Test)" + os: ubuntu-22.04 cuda: "11.7" compiler: gcc version: "10" diff --git a/.github/workflows/ubuntu-sonarcloud.yml b/.github/workflows/ubuntu-sonarcloud.yml index c111d359a8..ba66175622 100644 --- a/.github/workflows/ubuntu-sonarcloud.yml +++ b/.github/workflows/ubuntu-sonarcloud.yml @@ -13,9 +13,9 @@ jobs: strategy: matrix: include: - # Ubuntu 20.04 + gcc-10 - - name: "Ubuntu 20.04 + gcc-10" - os: ubuntu-20.04 + # Ubuntu 22.04 + gcc-10 + - name: "Ubuntu 22.04 + gcc-10" + os: ubuntu-22.04 compiler: gcc version: "10" diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index e449ae9524..f3944c51d8 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -11,6 +11,11 @@ jobs: strategy: matrix: include: + # Ubuntu 22.04 + gcc-13 + - name: "Ubuntu 22.04 + gcc-13" + os: ubuntu-22.04 + compiler: gcc + version: "13" # Ubuntu 22.04 + gcc-12 - name: "Ubuntu 22.04 + gcc-12" os: ubuntu-22.04 @@ -21,26 +26,21 @@ jobs: os: ubuntu-22.04 compiler: gcc version: "11" - # Ubuntu 22.04 + gcc-10 - - name: "Ubuntu 22.04 + gcc-10" + # Ubuntu 22.04 + clang-15 + - name: "Ubuntu 22.04 + clang-15" os: ubuntu-22.04 - compiler: gcc - version: "10" + compiler: clang + version: "15" # Ubuntu 22.04 + clang-14 - name: "Ubuntu 22.04 + clang-14" os: ubuntu-22.04 compiler: clang version: "14" - # Ubuntu 22.04 + clang-14 + # Ubuntu 22.04 + clang-13 - name: "Ubuntu 22.04 + clang-13" os: ubuntu-22.04 compiler: clang version: "13" - # Ubuntu 22.04 + clang-12 - - name: "Ubuntu 22.04 + clang-12" - os: ubuntu-22.04 - compiler: clang - version: "12" runs-on: ${{ matrix.os }} name: 🐧 Build - ${{ matrix.name }}