Skip to content

Create action.yml #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Jul 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
uses: ./install-wine
- name: Install Font
uses: ./install-fonts
- name: Setup Android
uses: ./install-android-dependencies
- name: Publish Game to itch.io
uses: ./publish-itchio
with:
Expand All @@ -36,6 +38,8 @@ jobs:
uses: ./install-wine
- name: Install Font
uses: ./install-fonts
- name: Setup Android
uses: ./install-android-dependencies
- name: Publish Game to itch.io
uses: ./publish-itchio
with:
Expand All @@ -57,6 +61,8 @@ jobs:
uses: ./install-wine
- name: Install Font
uses: ./install-fonts
- name: Setup Android
uses: ./install-android-dependencies
- name: Publish Game to itch.io
uses: ./publish-itchio
with:
Expand All @@ -78,6 +84,8 @@ jobs:
uses: ./install-wine
- name: Install Font
uses: ./install-fonts
- name: Setup Android
uses: ./install-android-dependencies
- name: Publish Game to itch.io
uses: ./publish-itchio
with:
Expand Down
36 changes: 36 additions & 0 deletions install-android-dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Install Android Dependencies
description: 'Installs the requested components into the system Android Sdk.'
author: 'infinitespace-studios'
runs:
using: "composite"
steps:
- uses: actions/setup-java@v4
if: runner.os == 'Windows'
with:
distribution: 'microsoft' # See 'Supported distributions' for available options
java-version: '17'
- name: Install Android Dependencies
if: runner.os != 'Windows'
run: |
echo $ANDROID_HOME
find $ANDROID_HOME | grep sdkmanager
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --version
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "platforms;android-34" "platforms;android-35" "platform-tools" "build-tools;34.0.0" "emulator" "system-images;android-34;default;x86_64" "cmdline-tools;11.0" --sdk_root=$ANDROID_HOME
for i in {1..10}; do
echo y
done | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses --sdk_root=$ANDROID_HOME
shell: bash
- name: Install Android Dependencies
if: runner.os == 'Windows'
run: |
echo $ANDROID_HOME
echo $JAVA_HOME
java -version
Invoke-WebRequest -Uri "https://dl.google.com/android/repository/commandlinetools-win-13114758_latest.zip" -OutFile "commandlinetools.zip"
$targetDir = "$env:ANDROID_SDK_ROOT"
Expand-Archive -Path "commandlinetools.zip" -DestinationPath $targetDir -Force
$sdkManagerPath = "$env:ANDROID_SDK_ROOT\cmdline-tools\bin\sdkmanager.bat"
& $sdkManagerPath "platform-tools" "build-tools;34.0.0" "platforms;android-35" "platform-tools" "build-tools;34.0.0" "cmdline-tools;11.0" --sdk_root=$ANDROID_HOME
(1..10 | ForEach-Object {"Yes"; Start-Sleep -Milliseconds 500}) | & $sdkManagerPath --licenses --sdk_root=$ANDROID_HOME
& $sdkManagerPath --licenses --sdk_root=$ANDROID_HOME
shell: pwsh
Loading