From 7aed6d2c23a526ac43d792e55a30ff22d01e93ee Mon Sep 17 00:00:00 2001 From: Sven Rebhan <36194019+srebhan@users.noreply.github.com> Date: Wed, 21 Feb 2024 18:36:09 +0100 Subject: [PATCH] chore(circleci): Use latest mingw (#14843) --- .circleci/config.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dafbf4db4..5188242c0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -42,6 +42,11 @@ commands: equal: [ "386", << parameters.arch >> ] steps: - run: echo 'export RACE="-race"' >> $BASH_ENV + - when: + condition: + equal: [ windows, << parameters.os >> ] + steps: + - run: echo 'export CGO_ENABLED=1' >> $BASH_ENV - run: | GOARCH=<< parameters.arch >> ./<< parameters.gotestsum >> -- ${RACE} -short ./... package-build: @@ -170,7 +175,8 @@ jobs: - run: git config --system core.longpaths true - run: choco feature enable -n allowGlobalConfirmation - run: 'sh ./scripts/installgo_windows.sh' - - run: choco install mingw --version=12.2.0.03042023 + - run: choco install mingw + - run: echo 'export PATH="$PATH:/c/ProgramData/mingw64/mingw64/bin"' >> $BASH_ENV - test-go: os: windows gotestsum: "gotestsum.exe"