Skip to content

Commit a3aa8bd

Browse files
authored
Merge pull request #111 from nvanbenschoten/nvanbenschoten/gcassert
apd: use gcassert to check that tmp big.Ints don't escape, add to CI
2 parents 17328c1 + c93f42c commit a3aa8bd

File tree

2 files changed

+71
-57
lines changed

2 files changed

+71
-57
lines changed

.github/workflows/go.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ jobs:
6565
go get honnef.co/go/tools/cmd/staticcheck
6666
staticcheck ./...
6767
68+
- name: 'GCAssert'
69+
# Only run gcassert on the latest versions of Go. Inlining heuristics
70+
# change from version to version.
71+
if: ${{ matrix.arch == 'x64' && matrix.go >= '1.17' }}
72+
run: |
73+
go get github.com/jordanlewis/gcassert/cmd/gcassert
74+
gcassert ./...
75+
6876
- name: 'BuildTest for armv7'
6977
if: ${{ matrix.arch == 'armv7' }}
7078
env:

0 commit comments

Comments
 (0)