mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-28 22:49:49 +00:00
70 lines
2.1 KiB
YAML
70 lines
2.1 KiB
YAML
name: Cache Dependencies
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
test:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- name: Free Disk Space (Ubuntu)
|
|
uses: insightsengineering/disk-space-reclaimer@v1
|
|
with:
|
|
tools-cache: true
|
|
android: false
|
|
dotnet: true
|
|
haskell: true
|
|
large-packages: true
|
|
swap-storage: true
|
|
docker-images: true
|
|
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-java@v1
|
|
with:
|
|
java-version: "11.x"
|
|
- name: Configure placeholder git details
|
|
run: |
|
|
git config --global user.email "CI@cakewallet.com"
|
|
git config --global user.name "Cake Github Actions"
|
|
- name: Flutter action
|
|
uses: subosito/flutter-action@v1
|
|
with:
|
|
flutter-version: "3.19.6"
|
|
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
|
|
-y curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
|
cargo install cargo-ndk
|
|
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
|
|
chmod +x pubspec_gen.sh
|
|
./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/scripts/monero_c/release
|
|
key: ${{ hashFiles('**/prepare_moneroc.sh' ,'**/build_monero_all.sh') }}
|
|
|
|
- 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_monero_all.sh
|