Update GitHub Actions workflow to include libsecp256k1 setup and cgo tests
- .github/workflows/go.yml - Added a step to install `libsecp256k1` using `ubuntu_install_libsecp256k1.sh`. - Updated steps to build and test with cgo enabled. - Added a step to explicitly set `CGO_ENABLED=0` in the environment.
This commit is contained in:
32
.github/workflows/go.yml
vendored
32
.github/workflows/go.yml
vendored
@@ -14,18 +14,28 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '1.24'
|
go-version: '1.24'
|
||||||
|
|
||||||
- name: Set env
|
- name: Install libsecp256k1
|
||||||
run: echo "CGO_ENABLED=0" >> $GITHUB_ENV
|
run: ./scripts/ubuntu_install_libsecp256k1.sh
|
||||||
|
|
||||||
- name: Build
|
- name: Build with cgo
|
||||||
run: go build -v ./...
|
run: go build -v ./...
|
||||||
|
|
||||||
|
- name: Test with cgo
|
||||||
|
run: go test -v ./...
|
||||||
|
|
||||||
|
- name: Set CGO off
|
||||||
|
run: echo "CGO_ENABLED=0" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: go build -v ./...
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: go test -v ./...
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: go test -v ./...
|
|
||||||
|
|||||||
Reference in New Issue
Block a user