File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 28
28
- name : Build
29
29
run : go build -v .
30
30
31
+ - name : Build on ARM
32
+ if : runner.os == 'Linux'
33
+ run : |
34
+ GOARCH=arm GOARM=5 go build .
35
+ GOARCH=arm GOARM=6 go build .
36
+ GOARCH=arm GOARM=7 go build .
37
+ GOARCH=arm64 go build .
38
+ GOARCH=arm64 GOOS=android go build .
39
+
31
40
- name : Test
32
41
run : env GO111MODULE=on go test -v -timeout 50m -race ./... -coverprofile='coverage.txt' -covermode=atomic
33
42
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ func (f *File) writeToZip(zw *zip.Writer) error {
211
211
break
212
212
}
213
213
content , _ := f .Pkg .Load (path )
214
- if n , err = fi .Write (content .([]byte )); n > math .MaxUint32 {
214
+ if n , err = fi .Write (content .([]byte )); int64 ( n ) > math .MaxUint32 {
215
215
f .zip64Entries = append (f .zip64Entries , path )
216
216
}
217
217
}
@@ -228,7 +228,7 @@ func (f *File) writeToZip(zw *zip.Writer) error {
228
228
if fi , err = zw .Create (path ); err != nil {
229
229
break
230
230
}
231
- if n , err = fi .Write (f .readBytes (path )); n > math .MaxUint32 {
231
+ if n , err = fi .Write (f .readBytes (path )); int64 ( n ) > math .MaxUint32 {
232
232
f .zip64Entries = append (f .zip64Entries , path )
233
233
}
234
234
}
You can’t perform that action at this time.
0 commit comments