Skip to content

Commit

Permalink
Build multiple times to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-mullvad committed Sep 5, 2024
1 parent e0bee4e commit 534ba41
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/android-app-multiple.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
name: Android - Multibuild
on:
workflow_dispatch:
inputs:
override_container_image:
description: Override container image
type: string
required: false
pull_request:

permissions: {}

jobs:
prepare:
name: Prepare
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Use custom container image if specified
if: ${{ github.event.inputs.override_container_image != '' }}
run: echo "inner_container_image=${{ github.event.inputs.override_container_image }}"
>> $GITHUB_ENV

- name: Use default container image and resolve digest
if: ${{ github.event.inputs.override_container_image == '' }}
run: |
echo "inner_container_image=$(cat ./building/android-container-image.txt)" >> $GITHUB_ENV
outputs:
container_image: ${{ env.inner_container_image }}

build-app:
name: Build app (multiple)
needs: prepare
runs-on: ubuntu-latest
container:
image: ${{ needs.prepare.outputs.container_image }}
strategy:
matrix:
attempt: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
steps:
# Fix for HOME path overridden by GH runners when building in containers, see:
# https://github.com/actions/runner/issues/863
- name: Fix HOME path
run: echo "HOME=/root" >> $GITHUB_ENV

- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true

- name: Checkout wireguard-go-rs recursively
run: |
git config --global --add safe.directory '*'
git submodule update --init --recursive --depth=1 wireguard-go-rs
- name: Run build script
shell: bash
run: ./build-apk.sh --dev-build
2 changes: 2 additions & 0 deletions build-apk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ for ARCHITECTURE in ${ARCHITECTURES:-x86_64}; do
fi
done

echo "DAEMON BUILT!"

exit 0

echo "Updating relays.json..."
Expand Down

0 comments on commit 534ba41

Please sign in to comment.