638acb0830
In https://github.com/ooni/probe/issues/1741, we observed that every attempt to use `docker --platform` along with `debian` for packaging ooniprobe fails with `SEGFAULT`, except when using the `debian:oldstable` container. To fix this issue, in this diff we fix Debian packaging to run on any debian system (`debian:stable` in our case) provided that we have `qemu-user-static` installed on the system and the system is a Debian (or Debian-derived) system. The trick here is to use `dpkg-buildpackage -a $deb_arch`. We also need to disable a few `debian/rules` that we don't actually need anyway. Closes https://github.com/ooni/probe/issues/1741. This cherry-picks 36a5bf34f99f382a081efd642dd472888a57602b from the stable branch into the master branch.
62 lines
2.1 KiB
YAML
62 lines
2.1 KiB
YAML
# linux builds ooniprobe for Linux
|
|
name: linux
|
|
on:
|
|
push:
|
|
branches:
|
|
- "release/**"
|
|
- "stable"
|
|
- "linux"
|
|
|
|
jobs:
|
|
build_386:
|
|
runs-on: "ubuntu-20.04"
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: ./mk OONI_PSIPHON_TAGS="" DEBIAN_TILDE_VERSION=$GITHUB_RUN_NUMBER ./debian/386
|
|
- run: ./E2E/ooniprobe.sh ./CLI/linux/386/ooniprobe
|
|
- run: ./CLI/linux/pubdebian
|
|
env:
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
DEB_GPG_KEY: ${{ secrets.DEB_GPG_KEY }}
|
|
|
|
build_amd64:
|
|
runs-on: "ubuntu-20.04"
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: ./mk OONI_PSIPHON_TAGS="" DEBIAN_TILDE_VERSION=$GITHUB_RUN_NUMBER ./debian/amd64
|
|
- run: ./E2E/ooniprobe.sh ./CLI/linux/amd64/ooniprobe
|
|
- run: ./CLI/linux/pubdebian
|
|
env:
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
DEB_GPG_KEY: ${{ secrets.DEB_GPG_KEY }}
|
|
|
|
build_arm:
|
|
runs-on: "ubuntu-20.04"
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: sudo apt-get update -q
|
|
- run: sudo apt-get install -y qemu-user-static
|
|
- run: ./mk OONI_PSIPHON_TAGS="" DEBIAN_TILDE_VERSION=$GITHUB_RUN_NUMBER ./debian/arm
|
|
- run: ./E2E/ooniprobe.sh ./CLI/linux/arm/ooniprobe
|
|
- run: ./CLI/linux/pubdebian
|
|
env:
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
DEB_GPG_KEY: ${{ secrets.DEB_GPG_KEY }}
|
|
|
|
build_arm64:
|
|
runs-on: "ubuntu-20.04"
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: sudo apt-get update -q
|
|
- run: sudo apt-get install -y qemu-user-static
|
|
- run: ./mk OONI_PSIPHON_TAGS="" DEBIAN_TILDE_VERSION=$GITHUB_RUN_NUMBER ./debian/arm64
|
|
- run: ./E2E/ooniprobe.sh ./CLI/linux/arm64/ooniprobe
|
|
- run: ./CLI/linux/pubdebian
|
|
env:
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
DEB_GPG_KEY: ${{ secrets.DEB_GPG_KEY }}
|