From 79a6515b69fac03787241459c45e4a788b663371 Mon Sep 17 00:00:00 2001 From: Shenghang Tsai Date: Mon, 2 Dec 2024 10:59:15 +0800 Subject: [PATCH 1/4] CXX flags to make it less verbose in GitHub Action --- cmake/caches/ci/release/cpu.cmake | 3 +++ cmake/caches/ci/release/cu118.cmake | 3 +++ cmake/caches/ci/release/cuda.cmake | 3 +++ 3 files changed, 9 insertions(+) diff --git a/cmake/caches/ci/release/cpu.cmake b/cmake/caches/ci/release/cpu.cmake index 0042b244450..bb7711fca49 100644 --- a/cmake/caches/ci/release/cpu.cmake +++ b/cmake/caches/ci/release/cpu.cmake @@ -13,3 +13,6 @@ set(CUDA_NVCC_THREADS_NUMBER 8 CACHE STRING "") set(CMAKE_C_COMPILER_LAUNCHER ccache CACHE STRING "") set(CMAKE_CXX_COMPILER_LAUNCHER ccache CACHE STRING "") set(CMAKE_CUDA_COMPILER_LAUNCHER ccache CACHE STRING "") +set(CMAKE_CXX_FLAGS + "-Wno-unused-but-set-parameter -Wno-unused-variable -Wno-class-memaccess -Wno-cast-function-type -Wno-comment -Wno-reorder" + CACHE STRING "") \ No newline at end of file diff --git a/cmake/caches/ci/release/cu118.cmake b/cmake/caches/ci/release/cu118.cmake index 270afb4409e..93562702cf1 100644 --- a/cmake/caches/ci/release/cu118.cmake +++ b/cmake/caches/ci/release/cu118.cmake @@ -15,3 +15,6 @@ set(CUDA_NVCC_THREADS_NUMBER 2 CACHE STRING "") set(CMAKE_C_COMPILER_LAUNCHER ccache CACHE STRING "") set(CMAKE_CXX_COMPILER_LAUNCHER ccache CACHE STRING "") set(CMAKE_CUDA_COMPILER_LAUNCHER ccache CACHE STRING "") +set(CMAKE_CXX_FLAGS + "-Wno-unused-but-set-parameter -Wno-unused-variable -Wno-class-memaccess -Wno-cast-function-type -Wno-comment -Wno-reorder" + CACHE STRING "") \ No newline at end of file diff --git a/cmake/caches/ci/release/cuda.cmake b/cmake/caches/ci/release/cuda.cmake index 07db0e4c12d..09a77f28bab 100644 --- a/cmake/caches/ci/release/cuda.cmake +++ b/cmake/caches/ci/release/cuda.cmake @@ -14,3 +14,6 @@ set(CUDA_NVCC_THREADS_NUMBER 2 CACHE STRING "") set(CMAKE_C_COMPILER_LAUNCHER ccache CACHE STRING "") set(CMAKE_CXX_COMPILER_LAUNCHER ccache CACHE STRING "") set(CMAKE_CUDA_COMPILER_LAUNCHER ccache CACHE STRING "") +set(CMAKE_CXX_FLAGS + "-Wno-unused-but-set-parameter -Wno-unused-variable -Wno-class-memaccess -Wno-cast-function-type -Wno-comment -Wno-reorder" + CACHE STRING "") \ No newline at end of file From 1b35e6b27a02cb82f065611a6919865e7e5f1720 Mon Sep 17 00:00:00 2001 From: Shenghang Tsai Date: Mon, 2 Dec 2024 11:00:05 +0800 Subject: [PATCH 2/4] fix fmt --- cmake/caches/ci/release/cpu.cmake | 2 +- cmake/caches/ci/release/cu118.cmake | 2 +- cmake/caches/ci/release/cuda.cmake | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/caches/ci/release/cpu.cmake b/cmake/caches/ci/release/cpu.cmake index bb7711fca49..d5b069195b3 100644 --- a/cmake/caches/ci/release/cpu.cmake +++ b/cmake/caches/ci/release/cpu.cmake @@ -15,4 +15,4 @@ set(CMAKE_CXX_COMPILER_LAUNCHER ccache CACHE STRING "") set(CMAKE_CUDA_COMPILER_LAUNCHER ccache CACHE STRING "") set(CMAKE_CXX_FLAGS "-Wno-unused-but-set-parameter -Wno-unused-variable -Wno-class-memaccess -Wno-cast-function-type -Wno-comment -Wno-reorder" - CACHE STRING "") \ No newline at end of file + CACHE STRING "") diff --git a/cmake/caches/ci/release/cu118.cmake b/cmake/caches/ci/release/cu118.cmake index 93562702cf1..cf8eeb72187 100644 --- a/cmake/caches/ci/release/cu118.cmake +++ b/cmake/caches/ci/release/cu118.cmake @@ -17,4 +17,4 @@ set(CMAKE_CXX_COMPILER_LAUNCHER ccache CACHE STRING "") set(CMAKE_CUDA_COMPILER_LAUNCHER ccache CACHE STRING "") set(CMAKE_CXX_FLAGS "-Wno-unused-but-set-parameter -Wno-unused-variable -Wno-class-memaccess -Wno-cast-function-type -Wno-comment -Wno-reorder" - CACHE STRING "") \ No newline at end of file + CACHE STRING "") diff --git a/cmake/caches/ci/release/cuda.cmake b/cmake/caches/ci/release/cuda.cmake index 09a77f28bab..778ac9c9391 100644 --- a/cmake/caches/ci/release/cuda.cmake +++ b/cmake/caches/ci/release/cuda.cmake @@ -16,4 +16,4 @@ set(CMAKE_CXX_COMPILER_LAUNCHER ccache CACHE STRING "") set(CMAKE_CUDA_COMPILER_LAUNCHER ccache CACHE STRING "") set(CMAKE_CXX_FLAGS "-Wno-unused-but-set-parameter -Wno-unused-variable -Wno-class-memaccess -Wno-cast-function-type -Wno-comment -Wno-reorder" - CACHE STRING "") \ No newline at end of file + CACHE STRING "") From 689ea0dc336f800f1e9379f02f48644bccd0514e Mon Sep 17 00:00:00 2001 From: Shenghang Tsai Date: Mon, 2 Dec 2024 11:02:37 +0800 Subject: [PATCH 3/4] fix gha reference --- .github/workflows/simple.yml | 2 +- .github/workflows/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index b3ff7b08b25..034a17fb1d4 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -219,7 +219,7 @@ jobs: fi - name: Upload logs if: always() && contains(github.event.pull_request.labels.*.name, 'need-simple-ci-upload-artifact') - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: logs-${{ matrix.test_suite }}-${{ matrix.cmake_generator }}-${{ matrix.cmake_build_type }}-shared-${{ matrix.build_shared_libs }} path: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8919c24aed9..af72a7eabb4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -139,7 +139,7 @@ jobs: git push - name: Upload patch if: ${{ failure() && steps.git_push.outcome == 'failure' }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: license_and_format-${{ github.sha }}.patch path: license_and_format.patch From 341b4fc139f3f28076cca3741102419829e59352 Mon Sep 17 00:00:00 2001 From: Shenghang Tsai Date: Mon, 2 Dec 2024 11:04:12 +0800 Subject: [PATCH 4/4] fix mirror --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index af72a7eabb4..6eb827b0d9f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -72,7 +72,7 @@ jobs: then exit 0 fi - python3 -m pip install -U pip setuptools wheel + python3 -m pip install -U pip "setuptools<=68.2.2" wheel python3 -m pip install 'cryptography<2.2' oss2 python3 tools/package_mirror.py -i $PWD