2021-10-22 16:13:44 +02:00
|
|
|
# linux builds and publishes ooniprobe for Linux
|
2020-08-22 11:20:50 +02:00
|
|
|
name: linux
|
|
|
|
on:
|
|
|
|
push:
|
2021-05-06 20:44:56 +02:00
|
|
|
branches:
|
|
|
|
- "release/**"
|
2021-10-22 16:13:44 +02:00
|
|
|
- "ooniprobe-staging"
|
2021-05-06 20:44:56 +02:00
|
|
|
|
2021-05-07 09:22:46 +02:00
|
|
|
jobs:
|
2021-05-11 20:16:27 +02:00
|
|
|
build_386:
|
2021-05-06 20:44:56 +02:00
|
|
|
runs-on: "ubuntu-20.04"
|
2020-08-22 11:20:50 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-11-19 12:40:10 +01:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- 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: ./mk DEBIAN_TILDE_VERSION=$GITHUB_RUN_NUMBER ./debian/386
|
2021-05-13 18:04:47 +02:00
|
|
|
- run: ./E2E/ooniprobe.sh ./CLI/linux/386/ooniprobe
|
2021-05-19 13:54:19 +02:00
|
|
|
- run: ./CLI/linux/pubdebian
|
2021-10-22 16:13:44 +02:00
|
|
|
if: github.ref == 'refs/heads/ooniprobe-staging'
|
2021-05-06 20:44:56 +02:00
|
|
|
env:
|
2021-05-11 20:16:27 +02:00
|
|
|
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
|
2021-11-19 12:40:10 +01:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- 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: ./mk DEBIAN_TILDE_VERSION=$GITHUB_RUN_NUMBER ./debian/amd64
|
2021-05-13 18:04:47 +02:00
|
|
|
- run: ./E2E/ooniprobe.sh ./CLI/linux/amd64/ooniprobe
|
2021-05-19 13:54:19 +02:00
|
|
|
- run: ./CLI/linux/pubdebian
|
2021-10-22 16:13:44 +02:00
|
|
|
if: github.ref == 'refs/heads/ooniprobe-staging'
|
2021-05-07 09:22:46 +02:00
|
|
|
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 }}
|
2021-05-06 20:44:56 +02:00
|
|
|
|
2021-05-11 20:16:27 +02:00
|
|
|
build_arm:
|
2021-05-06 20:44:56 +02:00
|
|
|
runs-on: "ubuntu-20.04"
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-11-19 12:40:10 +01:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-05-11 16:15:13 +02:00
|
|
|
- run: sudo apt-get update -q
|
|
|
|
- run: sudo apt-get install -y qemu-user-static
|
2021-11-19 12:40:10 +01:00
|
|
|
- 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: ./mk DEBIAN_TILDE_VERSION=$GITHUB_RUN_NUMBER ./debian/arm
|
2021-05-13 18:04:47 +02:00
|
|
|
- run: ./E2E/ooniprobe.sh ./CLI/linux/arm/ooniprobe
|
2021-05-19 13:54:19 +02:00
|
|
|
- run: ./CLI/linux/pubdebian
|
2021-10-22 16:13:44 +02:00
|
|
|
if: github.ref == 'refs/heads/ooniprobe-staging'
|
2021-05-06 20:44:56 +02:00
|
|
|
env:
|
2021-05-11 20:16:27 +02:00
|
|
|
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
|
2021-11-19 12:40:10 +01:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-05-11 20:16:27 +02:00
|
|
|
- run: sudo apt-get update -q
|
|
|
|
- run: sudo apt-get install -y qemu-user-static
|
2021-11-19 12:40:10 +01:00
|
|
|
- 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: ./mk DEBIAN_TILDE_VERSION=$GITHUB_RUN_NUMBER ./debian/arm64
|
2021-05-13 18:04:47 +02:00
|
|
|
- run: ./E2E/ooniprobe.sh ./CLI/linux/arm64/ooniprobe
|
2021-05-19 13:54:19 +02:00
|
|
|
- run: ./CLI/linux/pubdebian
|
2021-10-22 16:13:44 +02:00
|
|
|
if: github.ref == 'refs/heads/ooniprobe-staging'
|
2021-05-07 09:22:46 +02:00
|
|
|
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 }}
|