From c542b38c375497637c28321ade94d18f3f3dfe7a Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Tue, 7 Nov 2023 08:19:24 +0800 Subject: [PATCH] try go 1.16 again --- .github/workflows/ci.yml | 2 +- bn256/gfp_decl.go | 3 ++- bn256/gfp_generic.go | 3 ++- go.mod | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 63498b2..b2adca6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - goVer: ['1.18', '1.20'] + goVer: ['1.16', '1.18', '1.20'] steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/bn256/gfp_decl.go b/bn256/gfp_decl.go index ac8d842..666d8ae 100644 --- a/bn256/gfp_decl.go +++ b/bn256/gfp_decl.go @@ -1,5 +1,6 @@ //go:build (amd64 && !purego) || (arm64 && !purego) -// +build amd64,!purego arm64,!purego +// +build amd64 arm64 +// +build !purego package bn256 diff --git a/bn256/gfp_generic.go b/bn256/gfp_generic.go index 58505da..c78b841 100644 --- a/bn256/gfp_generic.go +++ b/bn256/gfp_generic.go @@ -1,5 +1,6 @@ //go:build (!amd64 && !arm64) || purego -// +build !amd64,!arm64 purego +// +build !amd64 purego +// +build !arm64 purego package bn256 diff --git a/go.mod b/go.mod index 5be6463..8d63199 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/emmansun/sm9 -go 1.18 +go 1.16 require golang.org/x/sys v0.14.0