From 737068e04f4076a9e1ce7b59128c755b00f24700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=B1=E5=B2=9A?= <36239017+YuJuncen@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:55:05 +0800 Subject: [PATCH] Lock Ubuntu at 22.04 for CPP / Rust Test Workflow (#1286) * lock ubuntu at 22.04 Signed-off-by: hillium * allow static_mut_refs Signed-off-by: hillium --------- Signed-off-by: hillium --- .github/workflows/cpp-test.yaml | 2 +- .github/workflows/rust-test.yaml | 2 +- src/lib.rs | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cpp-test.yaml b/.github/workflows/cpp-test.yaml index 6241db684..c51e9e8e7 100644 --- a/.github/workflows/cpp-test.yaml +++ b/.github/workflows/cpp-test.yaml @@ -14,7 +14,7 @@ on: - release-4.0 jobs: cpp-test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout code uses: actions/checkout@v2 diff --git a/.github/workflows/rust-test.yaml b/.github/workflows/rust-test.yaml index 01bf1ac6d..b6f8bae07 100644 --- a/.github/workflows/rust-test.yaml +++ b/.github/workflows/rust-test.yaml @@ -16,7 +16,7 @@ on: - release-3.0 jobs: rust-test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout code uses: actions/checkout@v2 diff --git a/src/lib.rs b/src/lib.rs index 23fd556b7..d7c50f887 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,6 +4,8 @@ #[allow(renamed_and_removed_lints)] #[allow(bare_trait_objects)] #[allow(deprecated)] +#[allow(static_mut_refs)] + mod protos { include!(concat!(env!("OUT_DIR"), "/protos/mod.rs"));