Skip to content

fix(loader): invalid binary length in stackmap #47

fix(loader): invalid binary length in stackmap

fix(loader): invalid binary length in stackmap #47

Workflow file for this run

name: Unit Test
on: pull_request
jobs:
build:
strategy:
max-parallel: 4
matrix:
go-version: [1.20.x, 1.21.x, 1.22.x, 1.23.x]
runner_arch: [ubuntu-24.04-arm]
runs-on: ${{ matrix.runner_arch }}
steps:
- name: Clear repository
run: rm -fr $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Cache Go modules
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
${{ github.workspace }}/go.sum
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Unit Test
run: |
GOMAXPROCS=4 go test -race -covermode=atomic -coverprofile=coverage.txt $(go list ./... | grep -v -E 'loader|jit|avx|x86|sse')
- name: Data Race
run: |
./scripts/test_race.sh
- name: Generic Test
if: ${{ !startsWith(matrix.go-version, '1.17.') }}
run: GOMAXPROCS=4 go test -v -race ./generic_test
- name: Codecov
run: bash <(curl -s https://codecov.io/bash)