2021-05-06 20:08:18 +02:00
|
|
|
# macos builds ooniprobe for macos
|
2020-08-22 11:20:50 +02:00
|
|
|
name: macos
|
|
|
|
on:
|
|
|
|
push:
|
2021-05-06 20:08:18 +02:00
|
|
|
branches:
|
|
|
|
- "release/**"
|
2020-08-22 11:20:50 +02:00
|
|
|
jobs:
|
|
|
|
build:
|
2021-05-06 20:08:18 +02:00
|
|
|
runs-on: "macos-10.15"
|
2020-08-22 11:20:50 +02:00
|
|
|
steps:
|
2021-05-11 16:15:13 +02:00
|
|
|
- uses: actions/setup-go@v1
|
|
|
|
with:
|
2021-11-10 14:18:04 +01:00
|
|
|
go-version: "1.17.3"
|
2020-08-22 11:20:50 +02:00
|
|
|
- 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 ./CLI/darwin/amd64/ooniprobe
|
2021-05-13 18:04:47 +02:00
|
|
|
- run: ./E2E/ooniprobe.sh ./CLI/darwin/amd64/ooniprobe
|