Skip to content

Commit 534ba41

Browse files
committed
Build multiple times to debug
1 parent e0bee4e commit 534ba41

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed
+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
name: Android - Multibuild
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
override_container_image:
7+
description: Override container image
8+
type: string
9+
required: false
10+
pull_request:
11+
12+
permissions: {}
13+
14+
jobs:
15+
prepare:
16+
name: Prepare
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Use custom container image if specified
23+
if: ${{ github.event.inputs.override_container_image != '' }}
24+
run: echo "inner_container_image=${{ github.event.inputs.override_container_image }}"
25+
>> $GITHUB_ENV
26+
27+
- name: Use default container image and resolve digest
28+
if: ${{ github.event.inputs.override_container_image == '' }}
29+
run: |
30+
echo "inner_container_image=$(cat ./building/android-container-image.txt)" >> $GITHUB_ENV
31+
outputs:
32+
container_image: ${{ env.inner_container_image }}
33+
34+
build-app:
35+
name: Build app (multiple)
36+
needs: prepare
37+
runs-on: ubuntu-latest
38+
container:
39+
image: ${{ needs.prepare.outputs.container_image }}
40+
strategy:
41+
matrix:
42+
attempt: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
43+
steps:
44+
# Fix for HOME path overridden by GH runners when building in containers, see:
45+
# https://github.com/actions/runner/issues/863
46+
- name: Fix HOME path
47+
run: echo "HOME=/root" >> $GITHUB_ENV
48+
49+
- name: Checkout repository
50+
uses: actions/checkout@v4
51+
with:
52+
submodules: true
53+
54+
- name: Checkout wireguard-go-rs recursively
55+
run: |
56+
git config --global --add safe.directory '*'
57+
git submodule update --init --recursive --depth=1 wireguard-go-rs
58+
59+
- name: Run build script
60+
shell: bash
61+
run: ./build-apk.sh --dev-build

build-apk.sh

+2
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ for ARCHITECTURE in ${ARCHITECTURES:-x86_64}; do
111111
fi
112112
done
113113

114+
echo "DAEMON BUILT!"
115+
114116
exit 0
115117

116118
echo "Updating relays.json..."

0 commit comments

Comments
 (0)