2022-12-22 18:59:40 +00:00
|
|
|
name: Cache Dependencies
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
|
2023-01-13 01:48:39 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2022-12-22 18:59:40 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: '8.x'
|
|
|
|
|
|
|
|
- name: Flutter action
|
|
|
|
uses: subosito/flutter-action@v1
|
|
|
|
with:
|
2023-08-18 15:37:17 +00:00
|
|
|
flutter-version: '3.10.x'
|
2022-12-22 18:59:40 +00:00
|
|
|
channel: stable
|
|
|
|
|
|
|
|
- name: Install package dependencies
|
|
|
|
run: sudo apt-get install -y curl unzip automake build-essential file pkg-config git python libtool libtinfo5 cmake clang
|
|
|
|
|
|
|
|
- name: Execute Build and Setup Commands
|
|
|
|
run: |
|
|
|
|
sudo mkdir -p /opt/android
|
|
|
|
sudo chown $USER /opt/android
|
|
|
|
cd /opt/android
|
|
|
|
git clone https://github.com/cake-tech/cake_wallet.git --branch main
|
|
|
|
cd cake_wallet/scripts/android/
|
|
|
|
./install_ndk.sh
|
|
|
|
source ./app_env.sh cakewallet
|
|
|
|
./app_config.sh
|
|
|
|
|
|
|
|
- name: Cache Externals
|
|
|
|
id: cache-externals
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
/opt/android/cake_wallet/cw_haven/android/.cxx
|
|
|
|
/opt/android/cake_wallet/cw_haven/ios/External
|
|
|
|
/opt/android/cake_wallet/cw_monero/android/.cxx
|
|
|
|
/opt/android/cake_wallet/cw_monero/ios/External
|
|
|
|
/opt/android/cake_wallet/cw_shared_external/ios/External
|
2022-12-22 21:35:56 +00:00
|
|
|
key: ${{ hashFiles('**/build_monero.sh', '**/build_haven.sh') }}
|
2022-12-22 18:59:40 +00:00
|
|
|
|
|
|
|
- if: ${{ steps.cache-externals.outputs.cache-hit != 'true' }}
|
|
|
|
name: Generate Externals
|
|
|
|
run: |
|
|
|
|
cd /opt/android/cake_wallet/scripts/android/
|
|
|
|
source ./app_env.sh cakewallet
|
|
|
|
./build_all.sh
|
|
|
|
./copy_monero_deps.sh
|