diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 0f03348b3..63e40b42d 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -6,7 +6,7 @@ jobs: build: strategy: matrix: - os: [X64, arm] + os: [X64, macos-latest] runs-on: ${{ matrix.os }} steps: - name: Clear repository diff --git a/.github/workflows/compatibility_test.yml b/.github/workflows/compatibility_test.yml index 30f2f536c..1ed858dc6 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, macos-latest] runs-on: ${{ matrix.os }} steps: - name: Clear repository @@ -38,6 +38,3 @@ jobs: - name: ast run: go test -race -v -gcflags="all=-l" github.com/bytedance/sonic/ast - - - name: qemu - run: sh scripts/qemu.sh \ No newline at end of file diff --git a/.github/workflows/fuzzing-linux-opt-X64.yml b/.github/workflows/fuzzing-linux-opt-X64.yml index a46d657f8..fc653c780 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: [macos-latest, 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..14d89ccbd 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: [macos-latest, 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..c2a02a1b6 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 macos-latest 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: [macos-latest] 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`。 ## 注意事项