feat(gha/linux): upload deb packages for arm64 (#337)
We're still working on https://github.com/ooni/probe/issues/1466. The idea here is to teach the GH action for Linux to publish the debian package for arm64. When this is done, we can cleanup legacy build scripts and GH actions, because there is no remaining use case for them: we now build everything using the `./make` tool.
This commit is contained in:
parent
3109d56aef
commit
e753e57da3
5 changed files with 22 additions and 210 deletions
20
.github/workflows/linux.yml
vendored
20
.github/workflows/linux.yml
vendored
|
|
@ -4,8 +4,8 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- "release/**"
|
||||
jobs:
|
||||
|
||||
jobs:
|
||||
build_amd64:
|
||||
runs-on: "ubuntu-20.04"
|
||||
steps:
|
||||
|
|
@ -18,6 +18,15 @@ jobs:
|
|||
DOCKER_CLI_EXPERIMENTAL: enabled
|
||||
- run: ./smoketest.sh ./CLI/linux/amd64/ooniprobe
|
||||
- run: ./make --disable-embedding-psiphon-config -t debian_amd64
|
||||
- run: sudo apt-get install -y --no-install-recommends git python3 python3-requests python3-gnupg s3cmd
|
||||
- run: |
|
||||
for deb in *.deb; do
|
||||
./.github/workflows/debops-ci --arch amd64 --show-commands upload --bucket-name ooni-deb $deb
|
||||
done
|
||||
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"
|
||||
|
|
@ -32,3 +41,12 @@ jobs:
|
|||
DOCKER_CLI_EXPERIMENTAL: enabled
|
||||
- run: ./smoketest.sh ./CLI/linux/arm64/ooniprobe
|
||||
- run: ./make --disable-embedding-psiphon-config -t debian_arm64
|
||||
- run: sudo apt-get install -y --no-install-recommends git python3 python3-requests python3-gnupg s3cmd
|
||||
- run: |
|
||||
for deb in *.deb; do
|
||||
./.github/workflows/debops-ci --arch arm64 --show-commands upload --bucket-name ooni-deb $deb
|
||||
done
|
||||
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 }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue