From 57e0a5af66252dffbc9f36756c073269a59d8e86 Mon Sep 17 00:00:00 2001 From: "liuqiang.06" Date: Wed, 4 Dec 2024 21:40:35 +0800 Subject: [PATCH] ci: use github ARM64 runner --- .github/workflows/benchmark.yml | 2 +- .github/workflows/compatibility_test.yml | 2 +- .github/workflows/fuzzing-linux-opt-X64.yml | 2 +- .github/workflows/fuzzing-linux-x64.yml | 2 +- .github/workflows/unit_test-linux-arm.yml | 4 ++-- README_ZH_CN.md | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 0f03348b3..e2cdc229c 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -6,7 +6,7 @@ jobs: build: strategy: matrix: - os: [X64, arm] + os: [X64, ARM64] runs-on: ${{ matrix.os }} steps: - name: Clear repository diff --git a/.github/workflows/compatibility_test.yml b/.github/workflows/compatibility_test.yml index 30f2f536c..45334d1fc 100644 --- a/.github/workflows/compatibility_test.yml +++ b/.github/workflows/compatibility_test.yml @@ -7,7 +7,7 @@ jobs: strategy: matrix: go-version: [1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x, 1.22.x, 1.23.x] - os: [arm, X64] + os: [X64, ARM64] runs-on: ${{ matrix.os }} steps: - name: Clear repository diff --git a/.github/workflows/fuzzing-linux-opt-X64.yml b/.github/workflows/fuzzing-linux-opt-X64.yml index a46d657f8..30b5bf8e5 100644 --- a/.github/workflows/fuzzing-linux-opt-X64.yml +++ b/.github/workflows/fuzzing-linux-opt-X64.yml @@ -6,7 +6,7 @@ jobs: build: strategy: matrix: - os: [arm, X64] + os: [ARM64, X64] runs-on: ${{ matrix.os }} steps: - name: Clear repository diff --git a/.github/workflows/fuzzing-linux-x64.yml b/.github/workflows/fuzzing-linux-x64.yml index e0c2a11b9..a5f523075 100644 --- a/.github/workflows/fuzzing-linux-x64.yml +++ b/.github/workflows/fuzzing-linux-x64.yml @@ -6,7 +6,7 @@ jobs: build: strategy: matrix: - os: [arm, X64] + os: [ARM64, X64] runs-on: ${{ matrix.os }} steps: - name: Clear repository diff --git a/.github/workflows/unit_test-linux-arm.yml b/.github/workflows/unit_test-linux-arm.yml index cc932e129..419553312 100644 --- a/.github/workflows/unit_test-linux-arm.yml +++ b/.github/workflows/unit_test-linux-arm.yml @@ -1,4 +1,4 @@ -name: Unit Test Linux arm +name: Unit Test Linux ARM64 on: push @@ -8,7 +8,7 @@ jobs: matrix: # TODO: 1.17.x, 1.18.x, 1.19.x not supported because golang asm bug go-version: [1.20.x, 1.21.x, 1.22.x, 1.23.x] - runs-on: [arm] + runs-on: [ARM64] steps: - name: Clear repository run: sudo rm -fr $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE diff --git a/README_ZH_CN.md b/README_ZH_CN.md index 0730ecec4..cf6e80764 100644 --- a/README_ZH_CN.md +++ b/README_ZH_CN.md @@ -389,7 +389,7 @@ type Visitor interface { - `ConfigDefault`: sonic的默认配置 (`EscapeHTML=false`, `SortKeys=false`…) 保证性能同时兼顾安全性。 - `ConfigStd`: 与 `encoding/json` 保证完全兼容的配置 - `ConfigFastest`: 最快的配置(`NoQuoteTextMarshaler=true...`) 保证性能最优但是会缺少一些安全性检查(validate UTF8 等) -Sonic **不**确保支持所有环境,由于开发高性能代码的困难。在不支持声音的环境中,实现将回落到 `encoding/json`。因此上述配置将全部等于`ConfigStd`。 +Sonic **不**确保支持所有环境,由于开发高性能代码的困难。在不支持sonic的环境中,实现将回落到 `encoding/json`。因此上述配置将全部等于`ConfigStd`。 ## 注意事项