mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-26 05:29:57 +00:00
android workflow fix
This commit is contained in:
parent
cf01fc21ff
commit
14b672cc84
2 changed files with 26 additions and 0 deletions
1
.github/workflows/pr_test_build_android.yml
vendored
1
.github/workflows/pr_test_build_android.yml
vendored
|
@ -113,6 +113,7 @@ jobs:
|
||||||
cd /opt/android/cake_wallet
|
cd /opt/android/cake_wallet
|
||||||
git clone https://github.com/ltcmweb/mwebd
|
git clone https://github.com/ltcmweb/mwebd
|
||||||
cd /opt/android/cake_wallet/mwebd
|
cd /opt/android/cake_wallet/mwebd
|
||||||
|
git reset --hard 49c42597ce5036fe1065200c3c056d0aba5f1a58
|
||||||
gomobile bind -target=android -androidapi 21 .
|
gomobile bind -target=android -androidapi 21 .
|
||||||
mkdir -p /opt/android/cake_wallet/cw_mweb/android/libs/
|
mkdir -p /opt/android/cake_wallet/cw_mweb/android/libs/
|
||||||
mv ./mwebd.aar $_
|
mv ./mwebd.aar $_
|
||||||
|
|
25
.github/workflows/pr_test_build_linux.yml
vendored
25
.github/workflows/pr_test_build_linux.yml
vendored
|
@ -89,6 +89,31 @@ jobs:
|
||||||
cd /opt/android/cake_wallet
|
cd /opt/android/cake_wallet
|
||||||
flutter pub get
|
flutter pub get
|
||||||
|
|
||||||
|
- name: Install go and gomobile
|
||||||
|
run: |
|
||||||
|
# install go > 1.21:
|
||||||
|
wget https://go.dev/dl/go1.22.4.linux-amd64.tar.gz
|
||||||
|
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.22.4.linux-amd64.tar.gz
|
||||||
|
export PATH=$PATH:/usr/local/go/bin
|
||||||
|
export PATH=$PATH:~/go/bin
|
||||||
|
go install golang.org/x/mobile/cmd/gomobile@latest
|
||||||
|
gomobile init
|
||||||
|
|
||||||
|
- name: Build mwebd TODO for linux!
|
||||||
|
run: |
|
||||||
|
# paths are reset after each step, so we need to set them again:
|
||||||
|
export PATH=$PATH:/usr/local/go/bin
|
||||||
|
export PATH=$PATH:~/go/bin
|
||||||
|
# build mwebd:
|
||||||
|
cd /opt/android/cake_wallet
|
||||||
|
git clone https://github.com/ltcmweb/mwebd
|
||||||
|
cd /opt/android/cake_wallet/mwebd
|
||||||
|
gomobile bind -target=android -androidapi 21 .
|
||||||
|
mkdir -p /opt/android/cake_wallet/cw_mweb/android/libs/
|
||||||
|
mv ./mwebd.aar $_
|
||||||
|
cd ..
|
||||||
|
rm -rf mwebd
|
||||||
|
|
||||||
- name: Generate localization
|
- name: Generate localization
|
||||||
run: |
|
run: |
|
||||||
cd /opt/android/cake_wallet
|
cd /opt/android/cake_wallet
|
||||||
|
|
Loading…
Reference in a new issue