Skip to content

Commit

Permalink
chore: try plain install
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Oct 28, 2024
1 parent 7e5bfc3 commit 1951024
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,25 @@ jobs:
GOOS: windows
run: go build

- name: Install pwsh
- name: Uninstall pwsh
run: |
choco uninstall pwsh -y --remove-dependencies
choco install pwsh "7.4.6" -y
# see https://go.dev/doc/articles/race_detector
# On Windows, the race detector runtime is sensitive to the version of the C compiler installed; as of Go 1.21,
# building a program with -race requires a C compiler that incorporates version 8 or later of the mingw-w64 runtime libraries.
# You can test your C compiler by invoking it with the arguments --print-file-name libsynchronization.a.
# A newer compliant C compiler will print a full path for this library, whereas older C compilers will just echo the argument.
- name: Set up MinGW
uses: egor-tensin/setup-mingw@84c781b557efd538dec66bde06988d81cd3138cf # v2.2.0
with:
platform: x64
run: choco install mingw -y -f

- name: go-test
env:
CGO_ENABLED: "1"
run: go test -race -v ./...
run: |
Import-Module "$env:ChocolateyInstall/helpers/chocolateyInstaller.psm1"
refreshenv
go test -race -v ./...
build-image-linux:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1951024

Please sign in to comment.