File tree 2 files changed +8
-12
lines changed
2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 13
13
run : |
14
14
versions=$(curl -s 'https://go.dev/dl/?mode=json' | jq -c 'map(.version[2:])')
15
15
echo "::set-output name=value::${versions}"
16
- test_v3_module :
16
+ test :
17
17
needs : go-versions
18
18
strategy :
19
19
fail-fast : false
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- PKGS=" cpu disk docker host load mem net process"
3
+ PKGS=" cpu disk docker host load mem net process sensors winservices "
4
4
5
5
GOOS=$( go env GOOS)
6
6
GOARCH=$( go env GOARCH)
7
7
GOARCH=$( go env GOARCH)
8
8
9
- for DIR in .
9
+ for PKG in $PKGS
10
10
do
11
- (cd " $DIR " || exit
12
- for PKG in $PKGS
13
- do
14
- if [ -e " ${PKG} /types_${GOOS} .go" ]; then
15
- (echo " // +build $GOOS "
16
- echo " // +build $GOARCH "
17
- go tool cgo -godefs " ${PKG} /types_${GOOS} .go" ) | gofmt > " ${PKG} /${PKG} _${GOOS} _${GOARCH} .go"
18
- fi
19
- done)
11
+ if [ -e " ${PKG} /types_${GOOS} .go" ]; then
12
+ (echo " // +build $GOOS "
13
+ echo " // +build $GOARCH "
14
+ go tool cgo -godefs " ${PKG} /types_${GOOS} .go" ) | gofmt > " ${PKG} /${PKG} _${GOOS} _${GOARCH} .go"
15
+ fi
20
16
done
You can’t perform that action at this time.
0 commit comments