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
24 changed files with 57 additions and 0 deletions
+1
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
jobs:
test:
+1
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
tags:
- "v*"
+1
View File
@@ -6,6 +6,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"
jobs:
analyze:
+1
View File
@@ -6,6 +6,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"
jobs:
measure_coverage:
+1
View File
@@ -5,6 +5,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"
jobs:
test_386:
+1
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
jobs:
test:
+1
View File
@@ -9,6 +9,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"
jobs:
build_and_test:
+1
View File
@@ -5,6 +5,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"
jobs:
gosec:
+1
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
tags:
- "v*"
+1
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
jobs:
test:
+27
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
+1
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
tags:
- "v*"
+1
View File
@@ -9,6 +9,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"
tags:
- "v*"
+1
View File
@@ -8,6 +8,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"
jobs:
test_netxlite_package:
+1
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
tags:
- "v*"
+1
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
jobs:
test:
+1
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
jobs:
test:
+1
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
jobs:
test:
+1
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
jobs:
test:
+1
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
jobs:
test:
+1
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
jobs:
test:
+2
View File
@@ -2,6 +2,8 @@
name: tarball
on:
push:
branches:
- "fullbuild"
tags:
- "v*"
+1
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
tags:
- "v*"