Skip to content

Commit

Permalink
ci: use github macos-latest runner
Browse files Browse the repository at this point in the history
  • Loading branch information
liuq19 committed Dec 5, 2024
1 parent 159ab7b commit 5438673
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
build:
strategy:
matrix:
os: [X64, arm]
os: [X64, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Clear repository
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/compatibility_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/fuzzing-linux-opt-X64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
build:
strategy:
matrix:
os: [arm, X64]
os: [macos-latest, X64]
runs-on: ${{ matrix.os }}
steps:
- name: Clear repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fuzzing-linux-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
build:
strategy:
matrix:
os: [arm, X64]
os: [macos-latest, X64]
runs-on: ${{ matrix.os }}
steps:
- name: Clear repository
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit_test-linux-arm.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Unit Test Linux arm
name: Unit Test Linux macos-latest

on: push

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README_ZH_CN.md
Original file line number Diff line number Diff line change
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 5438673

Please sign in to comment.