diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 0f03348b3..53164b479 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -6,7 +6,8 @@ jobs: build: strategy: matrix: - os: [X64, arm] + os: [X64] + # os: [X64, arm] runs-on: ${{ matrix.os }} steps: - name: Clear repository diff --git a/.github/workflows/compatibility_test-windows.yml b/.github/workflows/compatibility_test-windows.yml deleted file mode 100644 index 3945d209d..000000000 --- a/.github/workflows/compatibility_test-windows.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Compatibility Test Windows-X64 - -on: pull_request - -jobs: - build: - strategy: - matrix: - go-version: [1.17.x, 1.22.x, 1.23.x] - runs-on: windows-latest - steps: - - uses: actions/checkout@v2 - - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go-version }} - - - uses: actions/cache@v2 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- - - - name: main - run: | - set GOMAXPROCS=4 - go test -v -race github.com/bytedance/sonic - - - name: ast - run: | - set GOMAXPROCS=4 - go test -v -race github.com/bytedance/sonic/ast - - - name: external - run: | - cd ./external_jsonlib_test - set GOMAXPROCS=4 - go test -v -race ./... diff --git a/.github/workflows/compatibility_test.yml b/.github/workflows/compatibility_test.yml index 30f2f536c..6b4a2bf7f 100644 --- a/.github/workflows/compatibility_test.yml +++ b/.github/workflows/compatibility_test.yml @@ -7,7 +7,8 @@ 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] + # os: [arm, X64] 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..43298558a 100644 --- a/.github/workflows/fuzzing-linux-opt-X64.yml +++ b/.github/workflows/fuzzing-linux-opt-X64.yml @@ -6,7 +6,8 @@ jobs: build: strategy: matrix: - os: [arm, X64] + os: [X64] + # os: [arm, 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..062e7243d 100644 --- a/.github/workflows/fuzzing-linux-x64.yml +++ b/.github/workflows/fuzzing-linux-x64.yml @@ -6,7 +6,8 @@ jobs: build: strategy: matrix: - os: [arm, X64] + os: [X64] + # os: [arm, 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 deleted file mode 100644 index cc932e129..000000000 --- a/.github/workflows/unit_test-linux-arm.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Unit Test Linux arm - -on: push - -jobs: - build: - strategy: - 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] - steps: - - name: Clear repository - run: sudo rm -fr $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE - - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go-version }} - - - uses: actions/cache@v2 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- - - - name: Unit Test - run: | - go test -race -covermode=atomic -coverprofile=coverage.txt $(go list ./... | grep -v -E 'loader|jit|avx|x86|sse') - - - name: external - run: | - cd ./external_jsonlib_test - GOMAXPROCS=4 go test -v -race ./... - - - name: Codecov - run: bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 5f609b1c3..eeb63a124 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ A blazingly fast JSON serializing & deserializing library, accelerated by JI ## Requirement - Go: 1.17~1.23 -- OS: Linux / MacOS / Windows +- OS: Linux / MacOS - CPU: AMD64 / ARM64(need go1.20 above) ## Features diff --git a/README_ZH_CN.md b/README_ZH_CN.md index 0730ecec4..7e40ac611 100644 --- a/README_ZH_CN.md +++ b/README_ZH_CN.md @@ -7,7 +7,7 @@ ## 依赖 - Go: 1.17~1.23 -- OS: Linux / MacOS / Windows +- OS: Linux / MacOS - CPU: AMD64 / ARM64(需要 Go1.20 以上) ## 接口 @@ -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`。 ## 注意事项