mirror of
https://github.com/izzy2lost/docker-android.git
synced 2026-06-19 01:16:28 -07:00
Update build-sm64.yml
This commit is contained in:
@@ -13,19 +13,22 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Nix
|
||||
run: |
|
||||
sh <(curl -L https://nixos.org/nix/install) --daemon
|
||||
. /home/runner/.nix-profile/etc/profile.d/nix.sh
|
||||
|
||||
- name: Set Up Devenv
|
||||
run: |
|
||||
curl -L https://nixos.org/nix/install | sh
|
||||
nix-env -iA nixpkgs.devenv
|
||||
cp devenv.nix /root/.config/devenv/ # Copy devenv.nix to the expected location
|
||||
cp devenv.yaml /root/.config/devenv/ # Copy devenv.yaml to the expected location
|
||||
nix-env --install --attr devenv -f https://github.com/NixOS/nixpkgs/tarball/nixpkgs-unstable
|
||||
cp devenv.nix /root/.config/devenv/
|
||||
cp devenv.yaml /root/.config/devenv/
|
||||
devenv up
|
||||
|
||||
- name: Install Android Emulator (AArch64 & ARMv7)
|
||||
run: |
|
||||
sdkmanager --install "system-images;android-32;google_apis;arm64-v8a"
|
||||
sdkmanager --install "system-images;android-25;default;armeabi-v7a"
|
||||
|
||||
avdmanager create avd --force --name my-android-emulator-aarch64 --package "system-images;android-32;google_apis;arm64-v8a"
|
||||
avdmanager create avd --force --name my-android-emulator-armv7 --package "system-images;android-25;default;armeabi-v7a"
|
||||
echo "Android emulators set up successfully"
|
||||
|
||||
Reference in New Issue
Block a user