WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Mobile/Android build #54029

Mobile/Android build

Mobile/Android build #54029

name: Mobile/Android build
permissions:
contents: read
on:
workflow_run:
workflows:
- Request
types:
- completed
concurrency:
group: >-
${{ ((github.event.workflow_run.head_branch == 'main'
|| startsWith(github.event.workflow_run.head_branch, 'release/v'))
&& github.event.repository.full_name == github.repository)
&& github.run_id
|| github.event.workflow_run.head_branch }}-${{ github.event.repository.full_name }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
load:
secrets:
app-key: ${{ secrets.ENVOY_CI_APP_KEY }}
app-id: ${{ secrets.ENVOY_CI_APP_ID }}
permissions:
actions: read
contents: read
packages: read
pull-requests: read
if: |
github.event.workflow_run.conclusion == 'success'
&& github.event.workflow_run.repository.full_name == github.repository
&& contains(fromJSON('["pull_request_target", "push", "schedule"]'), github.event.workflow_run.event)
uses: ./.github/workflows/_load.yml
with:
check-name: mobile-android
build:
permissions:
actions: read
contents: read
packages: read
if: ${{ needs.load.outputs.request && fromJSON(needs.load.outputs.request).run.mobile-android }}
needs: load
name: Build envoy.aar distributable
uses: ./.github/workflows/_mobile_container_ci.yml
with:
args: >-
build
--config=ci
--config=mobile-rbe
--config=mobile-android-release
//:android_dist
container: ${{ needs.load.outputs.build-image && fromJSON(needs.load.outputs.build-image).mobile || '' }}
diskspace-hack-paths: |
/opt/hostedtoolcache
/usr/local/.ghcup
request: ${{ needs.load.outputs.request }}
timeout-minutes: 90
target: build
kotlin-hello-world:
permissions:
actions: read
contents: read
packages: read
name: kotlin-hello-world
uses: ./.github/workflows/_run.yml
if: ${{ needs.load.outputs.request && fromJSON(needs.load.outputs.request).run.mobile-android }}
needs:
- load
- build
with:
command: ./bazelw
container-command:
diskspace-hack-paths: |
/opt/hostedtoolcache
/usr/local/.ghcup
docker-ipv6: false
# Return to using:
# ./bazelw mobile-install --fat_apk_cpu=x86_64 --start_app //examples/kotlin/hello_world:hello_envoy_kt
# When https://github.com/envoyproxy/envoy-mobile/issues/853 is fixed.
args: >-
build
--config=ci
--config=mobile-rbe
--config=mobile-android-release
//examples/kotlin/hello_world:hello_envoy_kt
bind-mounts: |
- src: /mnt/workspace
target: GITHUB_WORKSPACE
chown: "runner:runner"
- src: /mnt/runner
target: RUNNER_TEMP/container/bazel_root
chown: "runner:runner"
- src: /mnt/runner-home
target: /home/runner/.cache
chown: "runner:runner"
request: ${{ needs.load.outputs.request }}
target: kotlin-hello-world
runs-on: ubuntu-22.04
steps-pre: |
- uses: envoyproxy/toolshed/gh-actions/envoy/android/[email protected]
steps-post: |
- uses: envoyproxy/toolshed/gh-actions/envoy/android/[email protected]
with:
apk: bazel-bin/examples/kotlin/hello_world/hello_envoy_kt.apk
app: io.envoyproxy.envoymobile.helloenvoykotlin/.MainActivity
status: 200
timeout-minutes: 50
trusted: ${{ needs.load.outputs.trusted && fromJSON(needs.load.outputs.trusted) || false }}
working-directory: mobile
apps:
permissions:
actions: read
contents: read
packages: read
name: Android apps
uses: ./.github/workflows/_run.yml
if: ${{ needs.load.outputs.request && fromJSON(needs.load.outputs.request).run.mobile-android-all }}
needs:
- load
- build
with:
command: ./bazelw
container-command:
args: ${{ matrix.args }}
bind-mounts: |
- src: /mnt/workspace
target: GITHUB_WORKSPACE
chown: "runner:runner"
- src: /mnt/runner
target: RUNNER_TEMP/container/bazel_root
chown: "runner:runner"
- src: /mnt/runner-home
target: /home/runner/.cache
chown: "runner:runner"
diskspace-hack-paths: |
/opt/hostedtoolcache
/usr/local/.ghcup
request: ${{ needs.load.outputs.request }}
target: ${{ matrix.target }}
runs-on: ubuntu-22.04
steps-pre: |
- uses: envoyproxy/toolshed/gh-actions/envoy/android/[email protected]
steps-post: ${{ matrix.steps-post }}
timeout-minutes: 50
trusted: ${{ needs.load.outputs.trusted && fromJSON(needs.load.outputs.trusted) || false }}
working-directory: mobile
strategy:
fail-fast: false
matrix:
include:
- name: java-hello-world
steps-post: |
- uses: envoyproxy/toolshed/gh-actions/envoy/android/[email protected]
with:
apk: bazel-bin/examples/java/hello_world/hello_envoy.apk
app: io.envoyproxy.envoymobile.helloenvoy/.MainActivity
status: 301
target: java-hello-world
args: >-
build
--config=ci
--config=mobile-rbe
--config=mobile-android-release
//examples/java/hello_world:hello_envoy
- name: kotlin-baseline-app
# Return to using:
# ./bazelw mobile-install --fat_apk_cpu=x86_64 --start_app //examples/kotlin/hello_world:hello_envoy_kt
# When https://github.com/envoyproxy/envoy-mobile/issues/853 is fixed.
args: >-
build
--config=ci
--config=mobile-rbe
--config=mobile-android-release
//test/kotlin/apps/baseline:hello_envoy_kt
steps-post: |
- uses: envoyproxy/toolshed/gh-actions/envoy/android/[email protected]
with:
apk: bazel-bin/test/kotlin/apps/baseline/hello_envoy_kt.apk
app: io.envoyproxy.envoymobile.helloenvoybaselinetest/.MainActivity
status: 301
target: kotlin-baseline-app
- name: kotlin-experimental-app
# Return to using:
# ./bazelw mobile-install --fat_apk_cpu=x86_64 --start_app //examples/kotlin/hello_world:hello_envoy_kt
# When https://github.com/envoyproxy/envoy-mobile/issues/853 is fixed.
args: >-
build
--config=ci
--config=mobile-rbe
--config=mobile-android-release
//test/kotlin/apps/experimental:hello_envoy_kt
steps-post: |
- uses: envoyproxy/toolshed/gh-actions/envoy/android/[email protected]
with:
apk: bazel-bin/test/kotlin/apps/experimental/hello_envoy_kt.apk
app: io.envoyproxy.envoymobile.helloenvoyexperimentaltest/.MainActivity
status: 200
target: kotlin-experimental-app
request:
secrets:
app-id: ${{ secrets.ENVOY_CI_APP_ID }}
app-key: ${{ secrets.ENVOY_CI_APP_KEY }}
permissions:
actions: read
contents: read
pull-requests: read
if: |
always()
&& github.event.workflow_run.conclusion == 'success'
&& github.event.workflow_run.repository.full_name == github.repository
&& contains(fromJSON('["pull_request_target", "push", "schedule"]'), github.event.workflow_run.event)
&& needs.load.outputs.request
&& fromJSON(needs.load.outputs.request).run.mobile-android
needs:
- load
- build
- kotlin-hello-world
- apps
uses: ./.github/workflows/_finish.yml
with:
needs: ${{ toJSON(needs) }}