Skip to content

Commit

Permalink
Merge pull request #1 from oldkingOK/fixci
Browse files Browse the repository at this point in the history
ci: branch checkout and apk sign issues
  • Loading branch information
Mythologyli authored Jul 28, 2024
2 parents e6a70d8 + 4b6ec5c commit d8f842d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ jobs:
distribution: 'adopt'
java-version: '17'
architecture: x64

- name: Setup build tool version variable
shell: bash
run: |
BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
echo Last build tool version is: $BUILD_TOOL_VERSION
- name: Set up Go
run: |
Expand All @@ -35,7 +42,6 @@ jobs:
run: |
git clone https://github.com/Mythologyli/zju-connect.git
cd zju-connect
git checkout android
go mod download
go install golang.org/x/mobile/cmd/gomobile@latest
go get golang.org/x/mobile/bind@latest
Expand Down Expand Up @@ -80,6 +86,8 @@ jobs:
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}

- name: Rename APK
run:
Expand Down

0 comments on commit d8f842d

Please sign in to comment.