fix: memory leak on Windows when calling SwapMemory (#72)

* fix: memory leak on Windows when calling SwapMemory

* update
This commit is contained in:
UUBulb
2024-10-05 18:52:50 +08:00
committed by GitHub
parent e7613a8d01
commit dd7e4132f9
+5
View File
@@ -61,6 +61,11 @@ jobs:
with: with:
go-version: "1.20.14" go-version: "1.20.14"
# WARNING: This is temporary remove it after the next release of gopsutil
- name: Patch gopsutil
run: |
curl -L https://github.com/shirou/gopsutil/pull/1722.patch | sudo patch -p1 -d $(printf "%s%s" "$(go env GOMODCACHE)" "/github.com/shirou/gopsutil/[email protected]")
- name: Build Test - name: Build Test
if: github.event_name != 'push' || !contains(github.ref, 'refs/tags/') if: github.event_name != 'push' || !contains(github.ref, 'refs/tags/')
uses: goreleaser/goreleaser-action@v6 uses: goreleaser/goreleaser-action@v6