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:
2025-08-08 08:47:02 +01:00
parent 429c8acaef
commit e929c09476

View File

@@ -14,18 +14,28 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24'
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24'
- name: Set env
run: echo "CGO_ENABLED=0" >> $GITHUB_ENV
- name: Install libsecp256k1
run: ./scripts/ubuntu_install_libsecp256k1.sh
- name: Build
run: go build -v ./...
- name: Build with cgo
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 ./...