Skip to content

Commit

Permalink
Merge pull request #1512 from faf0/faf0/2023-12-25-update-build-system
Browse files Browse the repository at this point in the history
Update Build System
  • Loading branch information
Rakashazi committed Jan 1, 2024
2 parents 9d7ae9a + 60218c2 commit 8478969
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 47 deletions.
79 changes: 39 additions & 40 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Checkout emu-ex-plus-alpha repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -28,18 +28,17 @@ jobs:
base64 --decode debug.keystore.base64 > debug.keystore
sudo cp -f debug.keystore /root/.android/.
fi
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends autoconf automake autopoint bash binutils-arm-linux-gnueabi clang cmake file gawk gettext git libtool libtool-bin llvm make nasm pkg-config unzip wget
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'

- name: Set up environment
run: |
Expand All @@ -51,14 +50,14 @@ jobs:
echo "EMUFRAMEWORK_PATH=${{ github.workspace }}/EmuFramework" >> $GITHUB_ENV
echo "IMAGINE_PATH=${{ github.workspace }}/imagine" >> $GITHUB_ENV
echo "IMAGINE_SDK_PATH=${{ github.workspace }}/imagine-sdk" >> $GITHUB_ENV
- name: Run script
run: |
cd imagine/bundle/all
chmod +x ./makeAll-android.sh
./makeAll-android.sh install
shell: bash

- name: Build environment
run: |
make -f $IMAGINE_PATH/android-release.mk install V=1 -j2
Expand All @@ -79,31 +78,31 @@ jobs:
- name: Upload 2600.emu artifact
uses: actions/upload-artifact@v3
if: ${{ matrix.image == '2600.emu' }}
with:
with:
name: 2600emu
path: ${{ github.workspace }}/2600.emu/target/android-release/build/outputs/apk/release/2600Emu-release.apk

- name: Build C64.emu
if: ${{ matrix.image == 'C64.emu' }}
run: |
run: |
cd C64.emu
make -f android-release.mk android-apk V=1 -j2
- name: Copy C64.emu artifact
if: ${{ matrix.image == 'C64.emu' }}
run: |
cp C64.emu/target/android-release/build/outputs/apk/release/C64Emu-release.apk EX-Emulators/C64Emu-release.apk
- name: Upload C64.emu artifact
uses: actions/upload-artifact@v3
if: ${{ matrix.image == 'C64.emu' }}
with:
with:
name: C64emu
path: ${{ github.workspace }}/C64.emu/target/android-release/build/outputs/apk/release/C64Emu-release.apk

- name: Build GBA.emu
if: ${{ matrix.image == 'GBA.emu' }}
run: |
run: |
cd GBA.emu
make -f android-release.mk android-apk V=1 -j2
Expand All @@ -115,25 +114,25 @@ jobs:
- name: Upload GBA.emu artifact
uses: actions/upload-artifact@v3
if: ${{ matrix.image == 'GBA.emu' }}
with:
with:
name: GBAemu
path: ${{ github.workspace }}/GBA.emu/target/android-release/build/outputs/apk/release/GbaEmu-release.apk

- name: Build GBC.emu
if: ${{ matrix.image == 'GBC.emu' }}
run: |
run: |
cd GBC.emu
make -f android-release.mk android-apk V=1 -j2
- name: Copy GBC.emu artifact
if: ${{ matrix.image == 'GBC.emu' }}
run: |
cp GBC.emu/target/android-release/build/outputs/apk/release/GbcEmu-release.apk EX-Emulators/GbcEmu-release.apk
- name: Upload GBC.emu artifact
uses: actions/upload-artifact@v3
if: ${{ matrix.image == 'GBC.emu' }}
with:
with:
name: GBCemu
path: ${{ github.workspace }}/GBC.emu/target/android-release/build/outputs/apk/release/GbcEmu-release.apk

Expand All @@ -157,25 +156,25 @@ jobs:

- name: Build MD.emu
if: ${{ matrix.image == 'MD.emu' }}
run: |
run: |
cd MD.emu
make -f android-release.mk android-apk V=1 -j2
- name: Copy MD.emu artifact
if: ${{ matrix.image == 'MD.emu' }}
run: |
cp MD.emu/target/android-release/build/outputs/apk/release/MdEmu-release.apk EX-Emulators/MdEmu-release.apk
- name: Upload MD.emu artifact
uses: actions/upload-artifact@v3
if: ${{ matrix.image == 'MD.emu' }}
with:
with:
name: MDemu
path: ${{ github.workspace }}/MD.emu/target/android-release/build/outputs/apk/release/MdEmu-release.apk

- name: Build MSX.emu
if: ${{ matrix.image == 'MSX.emu' }}
run: |
run: |
cd MSX.emu
make -f android-release.mk android-apk V=1 -j2
Expand All @@ -187,13 +186,13 @@ jobs:
- name: Upload MSX.emu artifact
uses: actions/upload-artifact@v3
if: ${{ matrix.image == 'MSX.emu' }}
with:
with:
name: MSXemu
path: ${{ github.workspace }}/MSX.emu/target/android-release/build/outputs/apk/release/MsxEmu-release.apk

- name: Build NEO.emu
if: ${{ matrix.image == 'NEO.emu' }}
run: |
run: |
cd NEO.emu
make -f android-release.mk android-apk V=1 -j2
Expand All @@ -205,13 +204,13 @@ jobs:
- name: Upload NEO.emu artifact
uses: actions/upload-artifact@v3
if: ${{ matrix.image == 'NEO.emu' }}
with:
with:
name: NEOemu
path: ${{ github.workspace }}/NEO.emu/target/android-release/build/outputs/apk/release/NeoEmu-release.apk

- name: Build NES.emu
if: ${{ matrix.image == 'NES.emu' }}
run: |
run: |
cd NES.emu
make -f android-release.mk android-apk V=1 -j2
Expand All @@ -223,13 +222,13 @@ jobs:
- name: Upload NES.emu artifact
uses: actions/upload-artifact@v3
if: ${{ matrix.image == 'NES.emu' }}
with:
with:
name: NESemu
path: ${{ github.workspace }}/NES.emu/target/android-release/build/outputs/apk/release/NesEmu-release.apk
path: ${{ github.workspace }}/NES.emu/target/android-release/build/outputs/apk/release/NesEmu-release.apk

- name: Build NGP.emu
if: ${{ matrix.image == 'NGP.emu' }}
run: |
run: |
cd NGP.emu
make -f android-release.mk android-apk V=1 -j2
Expand All @@ -241,13 +240,13 @@ jobs:
- name: Upload NGP.emu artifact
uses: actions/upload-artifact@v3
if: ${{ matrix.image == 'NGP.emu' }}
with:
with:
name: NGPemu
path: ${{ github.workspace }}/NGP.emu/target/android-release/build/outputs/apk/release/NgpEmu-release.apk
path: ${{ github.workspace }}/NGP.emu/target/android-release/build/outputs/apk/release/NgpEmu-release.apk

- name: Build PCE.emu
if: ${{ matrix.image == 'PCE.emu' }}
run: |
run: |
cd PCE.emu
make -f android-release.mk android-apk V=1 -j2
Expand All @@ -259,13 +258,13 @@ jobs:
- name: Upload PCE.emu artifact
uses: actions/upload-artifact@v3
if: ${{ matrix.image == 'PCE.emu' }}
with:
with:
name: PCEemu
path: ${{ github.workspace }}/PCE.emu/target/android-release/build/outputs/apk/release/PceEmu-release.apk

- name: Build Snes9x
if: ${{ matrix.image == 'Snes9x' }}
run: |
run: |
cd Snes9x
make -f android-release.mk android-apk V=1 -j2
Expand All @@ -277,7 +276,7 @@ jobs:
- name: Upload Snes9x artifact
uses: actions/upload-artifact@v3
if: ${{ matrix.image == 'Snes9x' }}
with:
with:
name: Snes9x
path: ${{ github.workspace }}/Snes9x/target/android-release/build/outputs/apk/release/Snes9xEXPlus-release.apk

Expand All @@ -301,7 +300,7 @@ jobs:

- name: Upload EX-Emulators artifacts
uses: actions/upload-artifact@v3
with:
with:
name: EX-Emulators
path: EX-Emulators/

Expand All @@ -313,10 +312,10 @@ jobs:

steps:
- name: Checkout emu-ex-plus-alpha repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Download Artifacts
uses: actions/download-artifact@v3
with:
Expand All @@ -326,7 +325,7 @@ jobs:
run: |
cd dist
for artifact in *
do
do
echo "-> Creating ${artifact}.zip"
pushd "$artifact"
zip -r "../${artifact}.zip" *
Expand All @@ -337,7 +336,7 @@ jobs:
run: |
git tag -f Pre-release
git push -f origin Pre-release
- name: Create Release
uses: ncipollo/release-action@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion imagine/make/android-metadata.mk
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ ifdef android_metadata_bluetooth
endif

ifndef android_metadata_target_sdk
android_metadata_target_sdk := 33
android_metadata_target_sdk := 34
endif

ifdef android_metadata_vibrate
Expand Down
4 changes: 2 additions & 2 deletions imagine/make/gradle/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.1.0'
classpath 'com.android.tools.build:gradle:8.2.0'
}
}

Expand All @@ -18,7 +18,7 @@ allprojects {
apply plugin: 'android'

android {
compileSdk 30
compileSdk 34

defaultConfig {
minSdkVersion METADATA_MIN_SDK
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 3 additions & 3 deletions imagine/src/base/android/imagine-v9/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ allprojects {
apply plugin: 'android-library'

android {
compileSdk 30
compileSdk 34

defaultConfig {
minSdkVersion 9
targetSdkVersion 33
targetSdkVersion 34
}

buildTypes {
Expand All @@ -40,6 +40,6 @@ android {
}

dependencies {
implementation "com.android.support:support-v4:23.3.+"
implementation "com.android.support:support-v4:28.0.+"
}

0 comments on commit 8478969

Please sign in to comment.