From a50271f3dbb043056ce5529826b28c9768f4caa8 Mon Sep 17 00:00:00 2001 From: Kan-Ru Chen Date: Tue, 2 Jan 2024 09:15:56 +0900 Subject: [PATCH] build: only test rust stable on ubuntu --- .github/workflows/ci.yml | 5 ++++- CMakeLists.txt | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fbd9baf41..db380f6fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,8 +20,11 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macos-latest] with_rust: ['true', 'false'] - rust_version: ['1.70', 'stable'] + rust_version: ['1.70'] include: + - os: ubuntu-latest + with_rust: true + rust_version: stable - os: ubuntu-latest c_compiler: cc - os: windows-latest diff --git a/CMakeLists.txt b/CMakeLists.txt index 398a168b9..b050ade4a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,6 +54,8 @@ elseif(MSVC) if(MSVC_VERSION LESS 1900) add_compile_definitions(snprintf=_snprintf) endif() + + set(BUILD_SHARED_LIBS OFF) endif()