Skip to content

Releases: tklauser/numcpus

v0.9.0

04 Oct 15:52
v0.9.0
Compare
Choose a tag to compare

This version introduces the List{Offline,Online,Possible,Present} functions (currently only implemented for Linux) which return a list of offline, online, possible or present CPUs, respectively.

What's Changed

  • .github: Bump actions/checkout from 4.1.3 to 4.1.4 by @dependabot in #82
  • Check that last ≥ first in parseCPURange by @tklauser in #83
  • .github: Bump actions/setup-go from 5.0.0 to 5.0.1 by @dependabot in #84
  • go.mod: bump golang.org/x/sys from 0.19.0 to 0.20.0 by @dependabot in #85
  • .github: Bump actions/checkout from 4.1.4 to 4.1.5 by @dependabot in #86
  • .github: Bump actions/checkout from 4.1.5 to 4.1.6 by @dependabot in #87
  • .github: drop macos-11 runner by @tklauser in #88
  • Implement List{Offline,Online,Possible,Present} functions on Linux by @tklauser in #89
  • Simplify listCPURange implementation by @tklauser in #90
  • .github: Bump actions/checkout from 4.1.6 to 4.1.7 by @dependabot in #92
  • go.mod: bump golang.org/x/sys from 0.20.0 to 0.23.0 by @dependabot in #94
  • .cirrus.yml: update Go to 1.22.5, FreeBSD to 1.13.3 by @tklauser in #95
  • .github: Bump actions/setup-go from 5.0.1 to 5.0.2 by @dependabot in #96
  • go.mod: bump golang.org/x/sys from 0.23.0 to 0.24.0 by @dependabot in #97
  • ci: update Go to 1.23 by @tklauser in #98
  • go.mod: bump golang.org/x/sys from 0.24.0 to 0.25.0 by @dependabot in #99
  • .github: Bump actions/checkout from 4.1.7 to 4.2.0 by @dependabot in #100
  • Don't skip testNumAndList if Get* fails or isn't supported by @tklauser in #101

Full Changelog: v0.8.0...v0.9.0

v0.8.0

25 Apr 08:09
v0.8.0
Compare
Choose a tag to compare

What's Changed

  • .github: Bump actions/setup-go from 4.1.0 to 5.0.0 by @dependabot in #70
  • .cirrus.yml: drop FreeBSD 12, add FreeBSD 13 and 14 by @tklauser in #72
  • go.mod: bump golang.org/x/sys from 0.15.0 to 0.16.0 by @dependabot in #71
  • go.mod: bump golang.org/x/sys from 0.16.0 to 0.17.0 by @dependabot in #73
  • go.mod: bump golang.org/x/sys from 0.17.0 to 0.18.0 by @dependabot in #74
  • ci: update Go to 1.22 by @tklauser in #75
  • .cirrus.yml: update Go to 1.22 by @tklauser in #76
  • .github: Bump actions/checkout from 4.1.1 to 4.1.2 by @dependabot in #77
  • go.mod: bump golang.org/x/sys from 0.18.0 to 0.19.0 by @dependabot in #78
  • .github: Bump actions/checkout from 4.1.2 to 4.1.3 by @dependabot in #79
  • .cirrus.yml: update Go to 1.22.2 by @tklauser in #80
  • .github/workflows: extend list of tested platforms, use versioned runners by @tklauser in #81

Full Changelog: v0.7.0...v0.8.0

v0.7.0

01 Dec 13:29
v0.7.0
Compare
Choose a tag to compare

What's Changed

  • .github: Bump actions/checkout from 3.5.2 to 3.5.3 by @dependabot in #55
  • go.mod: bump golang.org/x/sys from 0.8.0 to 0.9.0 by @dependabot in #56
  • go.mod: bump golang.org/x/sys from 0.9.0 to 0.10.0 by @dependabot in #57
  • go.mod: bump golang.org/x/sys from 0.10.0 to 0.11.0 by @dependabot in #58
  • .github: Bump actions/setup-go from 4.0.1 to 4.1.0 by @dependabot in #59
  • .github: Bump actions/checkout from 3.5.3 to 3.6.0 by @dependabot in #60
  • go.mod: bump golang.org/x/sys from 0.11.0 to 0.12.0 by @dependabot in #61
  • .github: Bump actions/checkout from 3.6.0 to 4.0.0 by @dependabot in #62
  • .github: Bump actions/checkout from 4.0.0 to 4.1.0 by @dependabot in #63
  • go.mod: bump golang.org/x/sys from 0.12.0 to 0.13.0 by @dependabot in #64
  • .github: Bump actions/checkout from 4.1.0 to 4.1.1 by @dependabot in #65
  • go.mod: bump golang.org/x/sys from 0.13.0 to 0.14.0 by @dependabot in #66
  • ci: update Go to 1.21 by @tklauser in #67
  • go.mod: bump golang.org/x/sys from 0.14.0 to 0.15.0 by @dependabot in #68
  • Minor updates for parseCPURange by @tklauser in #69

Full Changelog: v0.6.1...v0.7.0

v0.6.1

02 Jun 10:40
v0.6.1
Compare
Choose a tag to compare

What's Changed

  • .github: Bump actions/setup-go from 3.3.1 to 3.4.0 by @dependabot in #38
  • go.mod: bump golang.org/x/sys from 0.2.0 to 0.3.0 by @dependabot in #39
  • .github: Bump actions/checkout from 3.1.0 to 3.2.0 by @dependabot in #40
  • .github: Bump actions/setup-go from 3.4.0 to 3.5.0 by @dependabot in #41
  • go.mod: bump golang.org/x/sys from 0.3.0 to 0.4.0 by @dependabot in #42
  • .github: Bump actions/checkout from 3.2.0 to 3.3.0 by @dependabot in #43
  • ci: update Go to 1.20, drop 1.17 by @tklauser in #44
  • go.mod: bump golang.org/x/sys from 0.4.0 to 0.5.0 by @dependabot in #45
  • go.mod: bump golang.org/x/sys from 0.5.0 to 0.6.0 by @dependabot in #46
  • .github: Bump actions/checkout from 3.3.0 to 3.4.0 by @dependabot in #47
  • .github: Bump actions/setup-go from 3.5.0 to 4.0.0 by @dependabot in #48
  • .github: Bump actions/checkout from 3.4.0 to 3.5.0 by @dependabot in #49
  • go.mod: bump golang.org/x/sys from 0.6.0 to 0.7.0 by @dependabot in #50
  • .github: Bump actions/checkout from 3.5.0 to 3.5.1 by @dependabot in #51
  • .github: Bump actions/checkout from 3.5.1 to 3.5.2 by @dependabot in #52
  • go.mod: bump golang.org/x/sys from 0.7.0 to 0.8.0 by @dependabot in #53
  • .github: Bump actions/setup-go from 4.0.0 to 4.0.1 by @dependabot in #54

Full Changelog: v0.6.0...v0.6.1

v0.6.0

08 Nov 17:30
v0.6.0
Compare
Choose a tag to compare

What's Changed

  • .github: Bump actions/setup-go from 3.1.0 to 3.2.0 by @dependabot in #30
  • .github: Bump actions/setup-go from 3.2.0 to 3.2.1 by @dependabot in #31
  • .github/workflows: update Go to 1.19, drop 1.16 by @tklauser in #32
  • .github: Bump actions/setup-go from 3.2.1 to 3.3.0 by @dependabot in #33
  • .cirrus.yml: update to Go 1.19.1 by @tklauser in #34
  • .github: Bump actions/checkout from 3.0.2 to 3.1.0 by @dependabot in #35
  • .github: Bump actions/setup-go from 3.3.0 to 3.3.1 by @dependabot in #36
  • go.mod: pin golang.org/x/sys module to v0.2.0 by @tklauser in #37

Full Changelog: v0.5.0...v0.6.0

v0.5.0

13 May 08:46
v0.5.0
Compare
Choose a tag to compare

What's Changed

  • .github/workflows: update actions/setup-go to v3 by @tklauser in #22
  • .cirrus.yml: define Go version as env variable by @tklauser in #23
  • ci: update to Go 1.18, drop Go 1.15 by @tklauser in #24
  • .cirrus.yml: disable buildvcs on build and test by @tklauser in #25
  • .cirrus.yml: update to Go 1.18.1 by @tklauser in #26
  • .github: add dependabot config by @tklauser in #27
  • .github: Bump actions/checkout from 2 to 3 by @dependabot in #28
  • .github/workflows: use version hashes for actions by @tklauser in #29

New Contributors

Full Changelog: v0.4.0...v0.5.0

v0.4.0

01 Feb 17:43
v0.4.0
d68c580
Compare
Choose a tag to compare
  • Add Windows support (#21)
  • Implement GetKernelMax on freebsd
  • Fix tests involving getconf on various systems

Full Changelog: v0.3.0...v0.4.0

v0.3.0

17 Aug 09:10
v0.3.0
Compare
Choose a tag to compare
  • Use sched_getaffinity syscall to get online CPUs on Linux (#20)
  • ci: update Go to 1.17 (#19)
  • Add GetConfigured (#18)
  • Remove unnecessary check in getOnline (#17)
  • Drop getconf check in TestGetPresent (#16, fixes #15)
  • go.mod: update golang.org/x/sys to latest version (#14)