| 1 | name: Lint |
| 2 | |
| 3 | on: [pull_request] |
| 4 | |
| 5 | defaults: |
| 6 | run: |
| 7 | shell: bash |
| 8 | jobs: |
| 9 | # lint: |
| 10 | # runs-on: [Linux, amd64, android] |
| 11 | # container: |
| 12 | # image: ghcr.io/cake-tech/cake_wallet:debian13-flutter3.41.9-ndkr28-go1.24.1-ruststablenightly |
| 13 | # env: |
| 14 | # STORE_PASS: test@cake_wallet |
| 15 | # KEY_PASS: test@cake_wallet |
| 16 | # MONEROC_CACHE_DIR_ROOT: /opt/generic_cache |
| 17 | # BRANCH_NAME: ${{ github.head_ref || github.ref_name }} |
| 18 | # ANDROID_AVD_HOME: /root/.android/avd |
| 19 | # volumes: |
| 20 | # - /opt/cw_cache_android/root/.cache:/root/.cache |
| 21 | # - /opt/cw_cache_android/root/.android/avd/:/root/.android/avd |
| 22 | # - /opt/cw_cache_android/root/.ccache:/root/.ccache |
| 23 | # - /opt/cw_cache_android/root/.pub-cache/:/root/.pub-cache |
| 24 | # - /opt/cw_cache_android/root/.gradle/:/root/.gradle |
| 25 | # - /opt/cw_cache_android/root/.android/:/root/.android |
| 26 | # - /opt/cw_cache_android/root/go/pkg:/root/go/pkg |
| 27 | # - /opt/cw_cache_android/opt/generic_cache:/opt/generic_cache |
| 28 | # - /dev/kvm:/dev/kvm |
| 29 | # - /var/run/docker.sock:/var/run/docker.sock |
| 30 | # strategy: |
| 31 | # matrix: |
| 32 | # api-level: [ 29 ] |
| 33 | # |
| 34 | # steps: |
| 35 | # - name: Fix github actions messing up $HOME... |
| 36 | # run: "echo HOME=/root | sudo tee -a $GITHUB_ENV" |
| 37 | # - uses: actions/checkout@v4 |
| 38 | # with: |
| 39 | # ref: ${{ inputs.ref }} |
| 40 | # |
| 41 | # - name: configure git |
| 42 | # run: | |
| 43 | # git config --global --add safe.directory '*' |
| 44 | # git config --global user.email "ci@cakewallet.com" |
| 45 | # git config --global user.name "CakeWallet CI" |
| 46 | # |
| 47 | # - name: Fetch prebuilt Torch |
| 48 | # run: | |
| 49 | # set -x -e |
| 50 | # pushd scripts |
| 51 | # wget https://github.com/MrCyjaneK/torch_dart/releases/download/v1.0.17/torch_dart-v1.0.17.tar.gz -O torch_dart.tar.gz |
| 52 | # rm -rf torch_dart |
| 53 | # mkdir torch_dart |
| 54 | # pushd torch_dart |
| 55 | # tar -xzf ../torch_dart.tar.gz |
| 56 | # popd |
| 57 | # rm ./torch_dart.tar.gz |
| 58 | # popd |
| 59 | # |
| 60 | # - name: Fetch prebuilt Reown |
| 61 | # run: | |
| 62 | # set -x -e |
| 63 | # pushd scripts |
| 64 | # # cleaning |
| 65 | # rm -rf reown_flutter |
| 66 | # rm -f reown_flutter.tar.gz |
| 67 | # |
| 68 | # wget https://github.com/cake-tech/reown_flutter/releases/download/v0.0.4/reown_flutter-v0.0.4.tar.gz -O reown_flutter.tar.gz |
| 69 | # mkdir reown_flutter |
| 70 | # pushd reown_flutter |
| 71 | # tar -xzf ../reown_flutter.tar.gz |
| 72 | # popd |
| 73 | # rm ./reown_flutter.tar.gz |
| 74 | # popd |
| 75 | # |
| 76 | # - name: Build Bitbox Flutter |
| 77 | # run: | |
| 78 | # set -x -e |
| 79 | # pushd scripts |
| 80 | # ./build_bitbox_flutter.sh |
| 81 | # popd |
| 82 | # |
| 83 | # - name: Prepare Zcash |
| 84 | # run: | |
| 85 | # set -x -e |
| 86 | # scripts/prepare_zcash.sh |
| 87 | # |
| 88 | # - name: Execute Build and Setup Commands |
| 89 | # run: | |
| 90 | # pushd scripts/android |
| 91 | # source ./app_env.sh cakewallet |
| 92 | # export GITHUB_HUH=yeah |
| 93 | # ./app_config.sh |
| 94 | # popd |
| 95 | # |
| 96 | # - name: Install Flutter dependencies |
| 97 | # run: | |
| 98 | # flutter pub get |
| 99 | # |
| 100 | # - name: Build generated code |
| 101 | # run: | |
| 102 | # flutter --version |
| 103 | # flutter clean |
| 104 | # rm -rf .dart_tool |
| 105 | # rm pubspec.lock |
| 106 | # flutter pub get |
| 107 | # ./model_generator.sh async |
| 108 | # |
| 109 | # - name: Generate localization |
| 110 | # run: | |
| 111 | # dart run tool/generate_localization.dart |
| 112 | # |
| 113 | # - name: Lint |
| 114 | # run: | |
| 115 | # ABORT_ON_CHANGE=yeah scripts/lint.sh |