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:
parent
8c855ca597
commit
9e38ee5135
1
.github/workflows/alltests.yml
vendored
1
.github/workflows/alltests.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
|
1
.github/workflows/android.yml
vendored
1
.github/workflows/android.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
|
|
1
.github/workflows/codeql-analysis.yml
vendored
1
.github/workflows/codeql-analysis.yml
vendored
|
@ -6,6 +6,7 @@ on:
|
|||
branches:
|
||||
- "master"
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
|
|
1
.github/workflows/coverage.yml
vendored
1
.github/workflows/coverage.yml
vendored
|
@ -6,6 +6,7 @@ on:
|
|||
branches:
|
||||
- "master"
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
|
||||
jobs:
|
||||
measure_coverage:
|
||||
|
|
1
.github/workflows/debianrepo.yml
vendored
1
.github/workflows/debianrepo.yml
vendored
|
@ -5,6 +5,7 @@ on:
|
|||
branches:
|
||||
- "master"
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
|
||||
jobs:
|
||||
test_386:
|
||||
|
|
1
.github/workflows/generate.yml
vendored
1
.github/workflows/generate.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
|
1
.github/workflows/go1.19.yml
vendored
1
.github/workflows/go1.19.yml
vendored
|
@ -9,6 +9,7 @@ on:
|
|||
branches:
|
||||
- "master"
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
|
||||
jobs:
|
||||
build_and_test:
|
||||
|
|
1
.github/workflows/gosec.yml
vendored
1
.github/workflows/gosec.yml
vendored
|
@ -5,6 +5,7 @@ on:
|
|||
branches:
|
||||
- "master"
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
|
||||
jobs:
|
||||
gosec:
|
||||
|
|
1
.github/workflows/ios.yml
vendored
1
.github/workflows/ios.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
|
|
1
.github/workflows/jafar.yml
vendored
1
.github/workflows/jafar.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
|
27
.github/workflows/linux.yml
vendored
27
.github/workflows/linux.yml
vendored
|
@ -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
.github/workflows/macos.yml
vendored
1
.github/workflows/macos.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
|
|
1
.github/workflows/miniooni.yml
vendored
1
.github/workflows/miniooni.yml
vendored
|
@ -9,6 +9,7 @@ on:
|
|||
branches:
|
||||
- "master"
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
|
|
1
.github/workflows/netxlite.yml
vendored
1
.github/workflows/netxlite.yml
vendored
|
@ -8,6 +8,7 @@ on:
|
|||
branches:
|
||||
- "master"
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
|
||||
jobs:
|
||||
test_netxlite_package:
|
||||
|
|
1
.github/workflows/oohelperd.yml
vendored
1
.github/workflows/oohelperd.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
|
|
1
.github/workflows/qafbmessenger.yml
vendored
1
.github/workflows/qafbmessenger.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
|
1
.github/workflows/qahhfm.yml
vendored
1
.github/workflows/qahhfm.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
|
1
.github/workflows/qahirl.yml
vendored
1
.github/workflows/qahirl.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
|
1
.github/workflows/qatelegram.yml
vendored
1
.github/workflows/qatelegram.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
|
1
.github/workflows/qawebconnectivity.yml
vendored
1
.github/workflows/qawebconnectivity.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
|
1
.github/workflows/qawhatsapp.yml
vendored
1
.github/workflows/qawhatsapp.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
|
2
.github/workflows/tarball.yml
vendored
2
.github/workflows/tarball.yml
vendored
|
@ -2,6 +2,8 @@
|
|||
name: tarball
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "fullbuild"
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
|
|
1
.github/workflows/windows.yml
vendored
1
.github/workflows/windows.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- "release/**"
|
||||
- "fullbuild"
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
|
|
7
Makefile
7
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user