From 3347eaa63b82e8c83910cd965d28377ce8775565 Mon Sep 17 00:00:00 2001 From: "Giau. Tran Minh" <12751435+giautm@users.noreply.github.com> Date: Tue, 21 Nov 2023 19:34:42 +0700 Subject: [PATCH] .github/workflows: disable CGO (#106) * .github/workflows: disable CGO * chore: disable correct place --- .github/workflows/cd.yaml | 2 ++ .github/workflows/ci-go.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index d9f64016..b8476c35 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -37,6 +37,8 @@ jobs: - name: Compile Go Binary run: | go build -o $BINARY_NAME -ldflags "-X ariga.io/atlas-action/atlasaction.Version=${{ github.event.inputs.version || 'v1' }}" ./cmd/atlas-action + env: + CGO_ENABLED: 0 - name: Check version run: | OUTPUT=$(./$BINARY_NAME --version) diff --git a/.github/workflows/ci-go.yaml b/.github/workflows/ci-go.yaml index 9ce5e720..09cf3b9f 100644 --- a/.github/workflows/ci-go.yaml +++ b/.github/workflows/ci-go.yaml @@ -61,6 +61,8 @@ jobs: with: go-version: '1.21' - run: go install ./cmd/atlas-action + env: + CGO_ENABLED: 0 - uses: ./migrate/apply with: dir: file://atlasaction/testdata/migrations