Commit Graph

24 Commits

Author SHA1 Message Date
Simone Basso
faa9308b1e
fix(build.sh): clarify for what Linux archs we build (#198)
See https://github.com/ooni/probe/issues/807#issuecomment-766941585
2021-01-25 17:45:26 +01:00
Simone Basso
4b557a0899
build.sh: build windows/386 and linux/386, update Debian packaging (#193)
* feat(build.sh): build for windows/386

Part of https://github.com/ooni/probe/issues/1315

* fix(build.sh): docker pull so we have latest image

Part of https://github.com/ooni/probe/issues/1315

* fix(build.sh): apk update && apk upgrade to have latest packages

It does not currently seem necessary. But let's be defensive.

Part of https://github.com/ooni/probe/issues/1315.

* fix(windows.yml): for now disable windows/386

It's working locally but not remotely on Windows. We need to
figure out how to install the 386 compiler.

Part of https://github.com/ooni/probe/issues/1315.

* feat(build.sh): build for windows/386

Part of https://github.com/ooni/probe/issues/1315.

* fix(linux.yml): try to enable experimental docker flags

Related to https://github.com/ooni/probe/issues/1315.

See also https://github.com/actions/virtual-environments/issues/368#issuecomment-713588127.

* fix(debian): try to have single workflow with experimental docker

More commits probably needed.

Part of https://github.com/ooni/ooni.org/issues/677.

* remove restriction on the branch name

* maybe we need a pattern also for branches

* less stringent constraints

* consolidated debian workflow into a single workflow

* further fix the debian workflow

* only run debian action for specific branches or tags

* fix(build.sh): package the 386 windows version properly
2021-01-20 13:09:37 +01:00
cyBerta
ca11b2b65f
turn off printing of each command in the help section of the build script (#155) 2020-10-14 11:42:10 +02:00
Simone Basso
770a822fd4 fix(build.sh): name macOS files after the darwin platform
This was what we used to do in the past. Spotted by @sarathms.
2020-08-24 19:24:46 +02:00
Simone Basso
fe89b2454c
fix(build.sh): generate SHA256 sums (#149) 2020-08-24 15:17:24 +02:00
Simone Basso
4c65147009
WIP: Start preparing release v3.0.7 (#147)
* Use ooni/probe-engine 0.16.0
* Update all the other dependencies
* Use GitHub Actions rather than Travis CI
* Automatically build and test binaries on the target OS (for Windows, macOS, Linux on amd64)
* Make sure we correctly measure coverage
* Make sure we use `-race` when running tests
* Remove unnecessary scripts
* Make sure the README is up-to-date
* Write small script to update binary data and add GitHub Actions checks for it
* Notice that we needed to run ./updatebindata.sh and run it
* Self documenting instructions regarding cross compiling
* Set version number to v3.0.7-beta

Part of https://github.com/ooni/probe-engine/issues/748
2020-08-22 11:20:50 +02:00
Simone Basso
f3b21f90c6
deps: latest upper.io/db and pin probe-engine (#116)
We're specifically pinning a commit of probe-engine that is using
MK v0.10.11, so that we address the following issues:

1. we use db-ip.com for the country database as opposed to using
the increasingly stale MaxMind database (see https://github.com/ooni/probe-engine/issues/334)

2. we're using an implementation of WhatsApp that does not suffer
from the super-old CIDR bug (see https://github.com/ooni/probe-engine/issues/341)

3. we're not linking to libcurl anymore on Windows and Linux, thanks to
this new version of MK where we can optionally disable libcurl; we are
still linking to libcurl on macOS, but that has no impact on the binary
size since on macOS libcurl is part of the system

This should be enough, from my side to bless a new release of the
probe-cli (see https://github.com/ooni/probe/issues/1028).
2020-02-26 22:34:23 +01:00
Simone Basso
c38c01f974
build.sh: pass -tags ooni to build (#112)
See https://github.com/ooni/probe-engine/pull/333

Closes https://github.com/ooni/probe-engine/issues/267
2020-02-18 09:53:38 +01:00
Arturo Filastò
2a7579bf25 bash on bash 2020-01-30 11:38:30 +01:00
Arturo Filastò
52332c0977 Changes based on feedback from @bassosimone 2020-01-29 18:48:12 +01:00
Arturo Filastò
39214129fa Add bindata command to build script
This used to be present in the Makefile, but then got lost in history
2020-01-28 11:48:25 +01:00
Simone Basso
5e868fe043 Readme.md build.sh: stop spreading lies about GOPATH
Turns out there's no need to unset GOPATH.
2019-12-27 12:22:20 +01:00
Simone Basso
6cccfeb97a travis: run goveralls inside the docker container
Factor code and reorganize location of go cache and go paths such
that subsequent invocations reuse both dirs.
2019-12-26 19:13:25 +00:00
Arturo Filastò
d6d2490d2c Disable -race as it fails on alpine 2019-12-02 16:09:10 +02:00
Arturo Filastò
c99e719a45 Use code coverage commands from probe-engine 2019-12-02 16:01:37 +02:00
Arturo Filastò
410b7514d7 Use coveralls which is the same thing used in other repos 2019-12-02 15:42:14 +02:00
Arturo Filastò
cda9a3ee4f Add code coverage integration 2019-12-02 15:25:23 +02:00
Simone Basso
430a53e7d6
build.sh: re-enable psiphon (#81)
To test this, I'll create a fake release locally and make sure
the resulting binary is much larger. If you see this commit landing
on a PR, then it means I successfully run this check.
2019-11-29 16:17:37 +01:00
Simone Basso
e5248d632b
build.sh: produce smaller binaries (#72)
* don't include psiphon until we need it

* strip the binaries
2019-11-14 12:20:04 +01:00
Simone Basso
2986cbcb25
Update build.sh
Co-Authored-By: Sarath <sarath.ms@gmail.com>
2019-10-03 23:34:41 +02:00
Simone Basso
a8f8c65ffb build.sh: produce same release as before 2019-10-03 20:33:20 +02:00
Simone Basso
f3193b4a7c build.sh: add target to build release
While there, remove non actionable warning.
2019-10-03 11:45:49 +02:00
Simone Basso
23c8df1f0c
Rename the binary as ooniprobe (#58)
While there run the build container as unpriv user.
2019-10-02 19:27:15 +02:00
Simone Basso
9992690f8f Use MK v0.10.x, zap legacy GeoIP, build also on Linux (#29)
* Gopkg.lock: use MK v0.10.3

* ooni: stop using legacy GeoIP database files

* Some yak shaving of Makefile

1. remove now broken commands to download deps

2. also define the CXX cross compiler

* chore(dep): migrate from dep to go 1.11+ modules

See https://blog.callr.tech/migrating-from-dep-to-go-1.11-modules/

I need this to simplify my life in building for Travis.

* Introduce build.sh and repair build

In going forward, I believe we don't actually need a Makefile but I
didn't want to make such a radical change now.

* Another strategy wrt gopath

* travis: run regress tests on macOS

Closes #30
2019-05-15 15:48:06 +03:00