-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Build Android | ||
on: | ||
push: | ||
branches: | ||
- reproducible-builds-2 | ||
|
||
jobs: | ||
build-android: | ||
runs-on: ubuntu-latest | ||
container: reactnativecommunity/react-native-android@sha256:4ff9c9f80da57c72284900fcfdbd079183e735684c62d7fafd3df50fdb895453 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Envinfo | ||
run: npx envinfo | ||
- name: Install dependencies | ||
run: | | ||
apt-get update | ||
apt-get install -y curl unzip | ||
- name: Build application | ||
run: yarn build-unsigned-android | ||
- name: Find APK path | ||
run: | | ||
apk_path=$(find . -type f -name "*.apk" | head -n 1) | ||
echo "APK_PATH=$apk_path" >> $GITHUB_ENV | ||
- name: Upload APK as artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: app-release-unsigned | ||
path: ${{ env.APK_PATH }} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
VERSION=v0.18.0-beta-blixt | ||
|
||
ANDROID_FILE=Lndmobile.aar | ||
|
||
ANDROID_SHA256='c0f8e77da00795a370ef2a1c5ba9d413707c52226c33c2ef1e272007c2f30149' | ||
|
||
FILE_PATH=https://github.com/hsjoberg/lnd/releases/download/$VERSION/ | ||
|
||
ANDROID_LINK=$FILE_PATH$ANDROID_FILE | ||
|
||
########### | ||
# Android # | ||
########### | ||
|
||
# delete old instance of library file | ||
rm -rf android/app/lndmobile/$ANDROID_FILE | ||
|
||
# download Android LND library file | ||
curl -L $ANDROID_LINK > android/app/lndmobile/$ANDROID_FILE | ||
|
||
# check checksum | ||
if ! echo "$ANDROID_SHA256 android/app/lndmobile/$ANDROID_FILE" | sha256sum -c -; then | ||
echo "Android checksum failed" >&2 | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters