Building xmruw for supported targets #1
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
name: Build xmruw | |
run-name: Building xmruw for supported targets | |
on: [push] | |
jobs: | |
android: | |
runs-on: ubuntu-latest | |
container: | |
image: debian:bookworm | |
steps: | |
- name: Install dependencies | |
run: | | |
apt update | |
apt install -y build-essential pkg-config autoconf libtool ccache make cmake gcc g++ git curl lbzip2 libtinfo5 gperf unzip python-is-python3 | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Patch sources | |
run: | | |
git config --global --add safe.directory '*' | |
git config --global user.email "[email protected]" | |
git config --global user.name "CI mrcyjanek.net" | |
./apply_patches.sh ${{ matrix.coin }} | |
- name: ${{ matrix.coin }}/aarch64-linux-android | |
run: ./build_single.sh ${{ matrix.coin }} aarch64-linux-android -j$(nproc) | |
- uses: kuhnroyal/flutter-fvm-config-action@v2 | |
id: fvm-config-action | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }} | |
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }} | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: build xmruw | |
run: | | |
git clone https://github.com/mrcyjanek/unnamed_monero_wallet | |
cd unnamed_monero_wallet | |
flutter pub get | |
make version | |
cp ../release/monero/aarch64-linux-android_libwallet2_api_c.so.xz android/app/src/main/jniLibs/arm64-v8a/ | |
unxz -f android/app/src/main/jniLibs/arm64-v8a/*.xz | |
flutter build apk --flavor clean --dart-define=libstealth_calculator=false | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: xmruw apk | |
path: build/app/outputs/flutter-apk/*.apk |