forked from mirror/gitea
Fix master builds on mips* again (#815)
* Use local folder for xgo * Always do crosscompile and testing to fail early * Added mips* values for boltdb In order to get master building again I have applied these 2 additional files to boltdb. This should get dropped when https://github.com/boltdb/bolt/issues/656 gets solved.
This commit is contained in:
parent
79ab69fe30
commit
ea8c8cdaf3
11
.drone.yml
11
.drone.yml
@ -35,7 +35,7 @@ pipeline:
|
||||
commands:
|
||||
- make test-mysql
|
||||
when:
|
||||
event: [ push ]
|
||||
event: [ push, tag, pull_request ]
|
||||
|
||||
test-pgsql:
|
||||
image: webhippie/golang:edge
|
||||
@ -47,7 +47,7 @@ pipeline:
|
||||
commands:
|
||||
- make test-pgsql
|
||||
when:
|
||||
event: [ push ]
|
||||
event: [ push, tag, pull_request ]
|
||||
|
||||
updater:
|
||||
image: karalabe/xgo-latest:latest
|
||||
@ -59,8 +59,7 @@ pipeline:
|
||||
commands:
|
||||
- make release
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
branch: [ master, release/*, refs/tags/* ]
|
||||
event: [ push, tag, pull_request ]
|
||||
|
||||
coverage:
|
||||
image: plugins/coverage
|
||||
@ -140,11 +139,11 @@ services:
|
||||
- MYSQL_DATABASE=test
|
||||
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
|
||||
when:
|
||||
event: [ push ]
|
||||
event: [ push, tag, pull_request ]
|
||||
|
||||
pgsql:
|
||||
image: postgres:9.5
|
||||
environment:
|
||||
- POSTGRES_DB=test
|
||||
when:
|
||||
event: [ push ]
|
||||
event: [ push, tag, pull_request ]
|
||||
|
File diff suppressed because one or more lines are too long
2
Makefile
2
Makefile
@ -108,7 +108,7 @@ release-build:
|
||||
@which xgo > /dev/null; if [ $$? -ne 0 ]; then \
|
||||
go get -u github.com/karalabe/xgo; \
|
||||
fi
|
||||
xgo -dest $(DIST)/binaries -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -targets '$(TARGETS)' -out $(EXECUTABLE)-$(VERSION) $(IMPORT)
|
||||
xgo -dest $(DIST)/binaries -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -targets '$(TARGETS)' -out $(EXECUTABLE)-$(VERSION) .
|
||||
ifeq ($(CI),drone)
|
||||
mv /build/* $(DIST)/binaries
|
||||
endif
|
||||
|
8
vendor/github.com/boltdb/bolt/bolt_mips64.go
generated
vendored
Normal file
8
vendor/github.com/boltdb/bolt/bolt_mips64.go
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
// +build mips64
|
||||
package bolt
|
||||
|
||||
// maxMapSize represents the largest mmap size supported by Bolt.
|
||||
const maxMapSize = 0xFFFFFFFFFFFF // 256TB
|
||||
|
||||
// maxAllocSize is the size used when creating array pointers.
|
||||
const maxAllocSize = 0x7FFFFFFF
|
8
vendor/github.com/boltdb/bolt/bolt_mips64le.go
generated
vendored
Normal file
8
vendor/github.com/boltdb/bolt/bolt_mips64le.go
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
// +build mips64le
|
||||
package bolt
|
||||
|
||||
// maxMapSize represents the largest mmap size supported by Bolt.
|
||||
const maxMapSize = 0xFFFFFFFFFFFF // 256TB
|
||||
|
||||
// maxAllocSize is the size used when creating array pointers.
|
||||
const maxAllocSize = 0x7FFFFFFF
|
Loading…
Reference in New Issue
Block a user