From e28070b288d1d56d7ccbafe2fc27c7d5df55cb76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferdinand=20M=C3=BCtsch?= Date: Fri, 30 Sep 2022 00:02:30 +0200 Subject: [PATCH] fix(ci): build env vars on windows --- .github/workflows/ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6808ed3..aaf49a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,6 +34,9 @@ jobs: mapi: name: 'Automated pen-tests with Mayhem for API' runs-on: ubuntu-latest + env: + CGO_ENABLED: 0 + steps: - name: Set up Go 1.x uses: actions/setup-go@v2 @@ -47,7 +50,7 @@ jobs: run: go get - name: Build - run: CGO_ENABLED=0 go build -v . + run: go build -v . - name: start wakapi run: ./wakapi --config config.default.yml & @@ -82,8 +85,10 @@ jobs: platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} - steps: + env: + CGO_ENABLED: 0 + steps: - name: Set up Go 1.x uses: actions/setup-go@v2 with: @@ -97,4 +102,4 @@ jobs: run: go get - name: Build - run: CGO_ENABLED=0 go build -v . + run: go build -v .