Skip to content

Commit

Permalink
ci: remove arm and windows temp
Browse files Browse the repository at this point in the history
  • Loading branch information
liuq19 committed Dec 4, 2024
1 parent 159ab7b commit 526c0ea
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 81 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ jobs:
build:
strategy:
matrix:
os: [X64, arm]
os: [X64]
# os: [X64, arm]
runs-on: ${{ matrix.os }}
steps:
- name: Clear repository
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/compatibility_test-windows.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/compatibility_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/fuzzing-linux-opt-X64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ jobs:
build:
strategy:
matrix:
os: [arm, X64]
os: [X64]
# os: [arm, X64]
runs-on: ${{ matrix.os }}
steps:
- name: Clear repository
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/fuzzing-linux-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ jobs:
build:
strategy:
matrix:
os: [arm, X64]
os: [X64]
# os: [arm, X64]
runs-on: ${{ matrix.os }}
steps:
- name: Clear repository
Expand Down
68 changes: 34 additions & 34 deletions .github/workflows/unit_test-linux-arm.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
name: Unit Test Linux arm
# name: Unit Test Linux arm

on: push
# 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
# 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
# - uses: actions/checkout@v2
# with:
# fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
# - 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-
# - 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: 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: external
# run: |
# cd ./external_jsonlib_test
# GOMAXPROCS=4 go test -v -race ./...

- name: Codecov
run: bash <(curl -s https://codecov.io/bash)
# - name: Codecov
# run: bash <(curl -s https://codecov.io/bash)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ A blazingly fast JSON serializing &amp; 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
Expand Down
4 changes: 2 additions & 2 deletions README_ZH_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
## 依赖

- Go: 1.17~1.23
- OS: Linux / MacOS / Windows
- OS: Linux / MacOS
- CPU: AMD64 / ARM64(需要 Go1.20 以上)

## 接口
Expand Down Expand Up @@ -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`

## 注意事项

Expand Down

0 comments on commit 526c0ea

Please sign in to comment.