2021-05-06 19:56:55 +02:00
|
|
|
# android checks whether we can build for Android
|
2021-02-02 12:05:47 +01:00
|
|
|
name: android
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-10-22 16:13:44 +02:00
|
|
|
- "mobile-staging"
|
2021-03-08 14:52:04 +01:00
|
|
|
- "release/**"
|
2021-02-02 12:05:47 +01:00
|
|
|
jobs:
|
|
|
|
test:
|
2021-04-29 10:30:39 +02:00
|
|
|
runs-on: ubuntu-20.04
|
2021-02-02 12:05:47 +01: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"
|
2021-02-02 12:05:47 +01: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 ./MOBILE/android/oonimkall.aar
|