File tree 1 file changed +0
-43
lines changed
1 file changed +0
-43
lines changed Original file line number Diff line number Diff line change 18
18
with :
19
19
go-version : ${{ matrix.go }}
20
20
- run : go test
21
-
22
- test-non-amd64 :
23
- strategy :
24
- fail-fast : false
25
- matrix :
26
- arch :
27
- # For some reasons this is segfaulting on go env
28
- # - name: IBM Z and LinuxONE
29
- # architecture: "s390x"
30
- - name : POWER8
31
- architecture : " ppc64le"
32
-
33
- runs-on : ubuntu-latest
34
- name : Test on ${{ matrix.arch.name }}
35
- steps :
36
- - uses : actions/checkout@v2
37
- - uses : uraimo/run-on-arch-action@master
38
- with :
39
- arch : ${{ matrix.arch.architecture }}
40
- distro : ubuntu20.04
41
- env : | # YAML pipe
42
- GOARCH: ${{ matrix.arch.architecture }}
43
- CGO_ENABLED: 0
44
- GOPRIVATE: github.com/joho/godotenv
45
- run : |
46
- apt-get update
47
- apt-get install -q -y curl wget git
48
- latestGo=$(curl "https://go.dev/VERSION?m=text")
49
- wget "https://dl.google.com/go/${latestGo}.linux-${GOARCH}.tar.gz"
50
- rm -f $(which go)
51
- rm -rf /usr/local/go
52
- tar -C /usr/local -xzf "${latestGo}.linux-${GOARCH}.tar.gz"
53
- export PATH=/usr/local/go/bin:$PATH
54
- printf "Using go at: $(which go)\n"
55
- printf "Go version: $(go version)\n"
56
- printf "\n\nGo environment:\n\n"
57
- go env
58
- printf "\n\nSystem environment:\n\n"
59
- env
60
- go get -v -t -d ./...
61
- go test ./...
62
- cd ./cmd/godotenv
63
- go build -trimpath -ldflags="-w -s" -v
You can’t perform that action at this time.
0 commit comments