Skip to content

Commit

Permalink
Update android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
soy0ka authored Jul 17, 2024
1 parent 2533d34 commit 0354192
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,52 +37,5 @@ jobs:
run: npx expo-doctor
continue-on-error: true

- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'

- name: Download and setup Android SDK
run: |
sudo apt-get update
sudo apt-get install -y wget tar unzip
wget "https://dl.google.com/android/repository/commandlinetools-linux-9123335_latest.zip" -O commandlinetools.zip
mkdir -p $HOME/android-sdk/cmdline-tools
unzip -q commandlinetools.zip -d $HOME/android-sdk/cmdline-tools
mkdir -p $HOME/android-sdk/cmdline-tools/tools
mv $HOME/android-sdk/cmdline-tools/cmdline-tools/* $HOME/android-sdk/cmdline-tools/tools
echo 'ANDROID_SDK_ROOT=$HOME/android-sdk' >> $GITHUB_ENV
echo 'PATH=$PATH:$HOME/android-sdk/cmdline-tools/tools/bin' >> $GITHUB_ENV
echo 'PATH=$PATH:$HOME/android-sdk/platform-tools' >> $GITHUB_ENV
- name: Apply environment variables
run: |
echo 'ANDROID_SDK_ROOT=$HOME/android-sdk' >> $GITHUB_ENV
echo 'PATH=$PATH:$HOME/android-sdk/cmdline-tools/tools/bin' >> $GITHUB_ENV
echo 'PATH=$PATH:$HOME/android-sdk/platform-tools' >> $GITHUB_ENV
source $GITHUB_ENV
- name: Install Android SDK packages
run: |
yes | $HOME/android-sdk/cmdline-tools/tools/bin/sdkmanager --licenses
$HOME/android-sdk/cmdline-tools/tools/bin/sdkmanager "platform-tools" "platforms;android-30" "build-tools;30.0.3"
- name: Create eas.json
run: |
echo '{
"build": {
"development": {
"distribution": "internal",
"android": {
"buildType": "apk"
},
"ios": {
"simulator": true
}
}
}
}' > eas.json
- name: Build Android
run: npx expo run:android

0 comments on commit 0354192

Please sign in to comment.