-
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (62 loc) · 2.28 KB
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Build Pull Request
on: pull_request
jobs:
build:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Setup wine
id: wine_install
run: |
sudo apt install wine64
echo "WINE_PATH=$(which wine64)" >> $GITHUB_OUTPUT
- name: Save Android Debug Keystore
uses: akiojin/[email protected]
with:
base64: ${{ secrets.ANDROID_DEBUG_KEYSTORE }}
output-path: debug.keystore
- name: Setup Android Debug Keystore
run: |
echo "GODOT_ANDROID_KEYSTORE_DEBUG_PATH=debug.keystore" >> $GITHUB_ENV
echo "GODOT_ANDROID_KEYSTORE_DEBUG_USER=${{ secrets.ANDROID_DEBUG_KEYSTORE_USER }}" >> $GITHUB_ENV
echo "GODOT_ANDROID_KEYSTORE_DEBUG_PASSWORD=${{ secrets.ANDROID_DEBUG_KEYSTORE_PASSWORD }}" >> $GITHUB_ENV
- name: Export Game
id: export
uses: firebelley/[email protected]
with:
godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.2/Godot_v4.2-stable_linux.x86_64.zip
godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.2/Godot_v4.2-stable_export_templates.tpz
relative_project_path: ./
archive_output: true
export_debug: true
cache: true
wine_path: ${{ steps.wine_install.outputs.WINE_PATH }}
- name: Upload Linux Artifact
uses: actions/upload-artifact@v4
with:
name: linux
path: ${{ steps.export.outputs.archive_directory }}/LinuxX11.zip
- name: Upload Web Artifact
uses: actions/upload-artifact@v4
with:
name: web
path: ${{ steps.export.outputs.archive_directory }}/Web.zip
- name: Upload Windows Artifact
uses: actions/upload-artifact@v4
with:
name: windows
path: ${{ steps.export.outputs.archive_directory }}/Windows Desktop.zip
- name: Upload Android Artifact
uses: actions/upload-artifact@v4
with:
name: android
path: ${{ steps.export.outputs.archive_directory }}/Android.zip