feat: build ooniprobe for armv6 (#904)

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

While there, introduce a rule by which, if the branch is named `fullbuild` we run all possible builds. It helps to test all the builds without creating a release branch. Because release branches are protected, they cannot be deleted easily. On the contrary, the `fullbuild` branch can easily be disposed of.
This commit is contained in:
Simone Basso 2022-08-29 17:33:42 +02:00 committed by GitHub
parent 8c855ca597
commit 9e38ee5135
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 57 additions and 0 deletions

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
jobs:
test:

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
tags:
- "v*"

View File

@ -6,6 +6,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"
jobs:
analyze:

View File

@ -6,6 +6,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"
jobs:
measure_coverage:

View File

@ -5,6 +5,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"
jobs:
test_386:

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
jobs:
test:

View File

@ -9,6 +9,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"
jobs:
build_and_test:

View File

@ -5,6 +5,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"
jobs:
gosec:

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
tags:
- "v*"

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
jobs:
test:

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
tags:
- "v*"
@ -57,6 +58,32 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build_and_publish_armv6:
runs-on: "ubuntu-20.04"
permissions: # See https://github.com/ooni/probe/issues/2154
contents: write
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: sudo apt-get update -q
- run: sudo apt-get install -y qemu-user-static
- run: |
echo -n $PSIPHON_CONFIG_KEY > ./internal/engine/psiphon-config.key
echo $PSIPHON_CONFIG_JSON_AGE_BASE64 | base64 -d > ./internal/engine/psiphon-config.json.age
env:
PSIPHON_CONFIG_KEY: ${{ secrets.PSIPHON_CONFIG_KEY }}
PSIPHON_CONFIG_JSON_AGE_BASE64: ${{ secrets.PSIPHON_CONFIG_JSON_AGE_BASE64 }}
- run: make ./CLI/ooniprobe-linux-armv6
- run: ./E2E/ooniprobe.sh ./CLI/ooniprobe-linux-armv6
- run: |
tag=$(echo $GITHUB_REF | sed 's|refs/tags/||g')
gh release create -p $tag --target $GITHUB_SHA || true
gh release upload $tag --clobber ./CLI/ooniprobe-linux-armv6
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build_and_publish_armv7:
runs-on: "ubuntu-20.04"
permissions: # See https://github.com/ooni/probe/issues/2154

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
tags:
- "v*"

View File

@ -9,6 +9,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"
tags:
- "v*"

View File

@ -8,6 +8,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"
jobs:
test_netxlite_package:

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
tags:
- "v*"

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
jobs:
test:

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
jobs:
test:

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
jobs:
test:

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
jobs:
test:

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
jobs:
test:

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
jobs:
test:

View File

@ -2,6 +2,8 @@
name: tarball
on:
push:
branches:
- "fullbuild"
tags:
- "v*"

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
tags:
- "v*"

View File

@ -149,6 +149,7 @@ show-config:
./CLI/ooniprobe-linux: \
./CLI/ooniprobe-linux-386 \
./CLI/ooniprobe-linux-amd64 \
./CLI/ooniprobe-linux-armv6 \
./CLI/ooniprobe-linux-armv7 \
./CLI/ooniprobe-linux-arm64
@ -164,6 +165,12 @@ show-config:
./CLI/ooniprobe-linux-amd64: search/for/docker maybe/copypsiphon
./CLI/go-build-linux-static amd64 ./cmd/ooniprobe
#help:
#help: * `make ./CLI/ooniprobe-linux-armv6`: linux/arm
.PHONY: ./CLI/ooniprobe-linux-armv6
./CLI/ooniprobe-linux-armv6: search/for/docker maybe/copypsiphon
./CLI/go-build-linux-static armv6 ./cmd/ooniprobe
#help:
#help: * `make ./CLI/ooniprobe-linux-armv7`: linux/arm
.PHONY: ./CLI/ooniprobe-linux-armv7