fix(ci): add CGO_ENABLED and GITEA_* env vars
This commit is contained in:
@@ -41,6 +41,9 @@ jobs:
|
|||||||
- name: Create release
|
- name: Create release
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
||||||
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||||
|
GITEA_REF_NAME: ${{ gitea.ref_name }}
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,8 @@ jobs:
|
|||||||
go-version: "1.26"
|
go-version: "1.26"
|
||||||
|
|
||||||
- name: go test -race
|
- name: go test -race
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: "1"
|
||||||
run: go test -race -count=1 ./...
|
run: go test -race -count=1 ./...
|
||||||
|
|
||||||
- name: build example
|
- name: build example
|
||||||
|
|||||||
Reference in New Issue
Block a user