Skip to content

fix test aarch64 build #243

fix test aarch64 build

fix test aarch64 build #243

name: Compatibility Test Linux-X64|ARM
on: pull_request
jobs:
build:
strategy:
matrix:
go-version: [1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x]
arch: [X64, arm]
runs-on: ${{ matrix.arch }}
steps:
- name: Clear repository
run: sudo rm -fr $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE
- 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.arch }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.arch }}-go-
- name: main
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: 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: 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: 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