Skip to content

Commit

Permalink
fix: ci for aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
liuq19 committed Feb 28, 2024
1 parent 37d1c80 commit 82f9673
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/compatibility_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
strategy:
matrix:
go-version: [1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x]
os: [X64, arm]
runs-on: ${{ matrix.os }}
arch: [X64, arm]
runs-on: ${{ matrix.arch }}
steps:
- name: Clear repository
run: sudo rm -fr $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE
Expand All @@ -23,21 +23,21 @@ jobs:
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
key: ${{ runner.arch }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
${{ runner.arch }}-go-
- name: main
run: GOMAXPROCS=4 go test -v -race github.com/bytedance/sonic
run: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./dev/rs_wrapper/lib/linux GOMAXPROCS=4 go test -v -race github.com/bytedance/sonic

- name: encoder
run: GOMAXPROCS=4 go test -v -race github.com/bytedance/sonic/internal/encoder
run: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./dev/rs_wrapper/lib/linux GOMAXPROCS=4 go test -v -race github.com/bytedance/sonic/internal/encoder

- name: issues
run: GOMAXPROCS=4 go test -v -race github.com/bytedance/sonic/issue_test
run: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./dev/rs_wrapper/lib/linux GOMAXPROCS=4 go test -v -race github.com/bytedance/sonic/issue_test

- name: ast
run: GOMAXPROCS=4 go test -v -race github.com/bytedance/sonic/ast
run: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./dev/rs_wrapper/lib/linux GOMAXPROCS=4 go test -v -race github.com/bytedance/sonic/ast

- name: qemu
run: sh scripts/qemu.sh
3 changes: 2 additions & 1 deletion fuzz/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
testname := FuzzMain
corpusdir := ./testdata/fuzz/${testname}
go := go
os := linux

fuzz:
${go} version
Expand All @@ -12,7 +13,7 @@ fuzz:

run:
${go} version
SONIC_FUZZ_MEM_LIMIT=2 GOMAXPROCS=4 ${go} test -fuzz=${testname} -v -fuzztime 10m
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../dev/rs_wrapper/lib/${os} SONIC_FUZZ_MEM_LIMIT=2 GOMAXPROCS=4 ${go} test -fuzz=${testname} -v -fuzztime 10m

clean:
rm -rf ./go-fuzz-corpus/
Expand Down

0 comments on commit 82f9673

Please sign in to comment.