mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-23 07:38:45 +00:00
testing
This commit is contained in:
parent
27787598a5
commit
5dbdb250c2
1 changed files with 20 additions and 11 deletions
31
.github/workflows/pr_test_build.yml
vendored
31
.github/workflows/pr_test_build.yml
vendored
|
@ -19,9 +19,6 @@ jobs:
|
|||
PR_NUMBER: ${{ github.event.number }}
|
||||
|
||||
steps:
|
||||
- name: Setup tmate session
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
|
||||
- name: is pr
|
||||
if: github.event_name == 'pull_request'
|
||||
run: echo "BRANCH_NAME=${GITHUB_HEAD_REF}" >> $GITHUB_ENV
|
||||
|
@ -90,22 +87,34 @@ jobs:
|
|||
cd /opt/android/cake_wallet
|
||||
flutter pub get
|
||||
|
||||
- name: Install Gomobile
|
||||
run: |
|
||||
go install golang.org/x/mobile/cmd/gomobile@latest
|
||||
go install golang.org/x/mobile/cmd/gobind@latest
|
||||
go get golang.org/x/mobile/cmd/gobind
|
||||
go get golang.org/x/mobile/cmd/gomobile
|
||||
gomobile init
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org,direct
|
||||
GO111MODULE: "on"
|
||||
|
||||
- name: build mweb
|
||||
run: |
|
||||
# install latest go:
|
||||
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
|
||||
go install golang.org/x/mobile/cmd/gomobile@latest
|
||||
# # install latest go:
|
||||
# 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
|
||||
# go install golang.org/x/mobile/cmd/gomobile@latest
|
||||
|
||||
# install mwebd:
|
||||
cd /opt/android/cake_wallet
|
||||
git clone https://github.com/ltcmweb/mwebd
|
||||
cd /opt/android/cake_wallet/mwebd
|
||||
go get github.com/ltcmweb/mwebd/cmd/mwebd
|
||||
go install github.com/ltcmweb/mwebd/cmd/mwebd
|
||||
go get golang.org/x/mobile/cmd/gobind
|
||||
go get golang.org/x/mobile/cmd/gomobile
|
||||
gomobile init
|
||||
# go get golang.org/x/mobile/cmd/gobind
|
||||
# go get golang.org/x/mobile/cmd/gomobile
|
||||
# gomobile init
|
||||
gomobile bind -target=android -androidapi 21 github.com/ltcmweb/mwebd
|
||||
mkdir -p /opt/android/cake_wallet/cw_mweb/android/libs/
|
||||
mv ./mwebd.aar $_
|
||||
|
|
Loading…
Reference in a new issue