Skip to content

Commit

Permalink
feat: build ooniprobe for armv6 (#904)
Browse files Browse the repository at this point in the history
Part of ooni/probe#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.
  • Loading branch information
bassosimone authored Aug 29, 2022
1 parent 8c855ca commit 9e38ee5
Show file tree
Hide file tree
Showing 24 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/alltests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"

jobs:
test:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
tags:
- "v*"

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"

jobs:
analyze:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"

jobs:
measure_coverage:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/debianrepo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"

jobs:
test_386:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"

jobs:
test:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/go1.19.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"

jobs:
build_and_test:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gosec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"

jobs:
gosec:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
tags:
- "v*"

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/jafar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"

jobs:
test:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
tags:
- "v*"

Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
tags:
- "v*"

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/miniooni.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"
tags:
- "v*"

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/netxlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches:
- "master"
- "release/**"
- "fullbuild"

jobs:
test_netxlite_package:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/oohelperd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
tags:
- "v*"

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/qafbmessenger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"

jobs:
test:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/qahhfm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"

jobs:
test:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/qahirl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"

jobs:
test:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/qatelegram.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"

jobs:
test:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/qawebconnectivity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"

jobs:
test:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/qawhatsapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"

jobs:
test:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tarball.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
name: tarball
on:
push:
branches:
- "fullbuild"
tags:
- "v*"

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "release/**"
- "fullbuild"
tags:
- "v*"

Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 9e38ee5

Please sign in to comment.