mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-05-28 17:06:34 +03:00
WIP jitpack-less build
This commit is contained in:
2
.github/workflows/deployment.yml
vendored
2
.github/workflows/deployment.yml
vendored
@@ -19,6 +19,8 @@ jobs:
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 17
|
||||
- name: Fetch latest Arc
|
||||
run: git clone --depth=1 --branch=master https://github.com/Anuken/Arc ../Arc
|
||||
- name: Set env
|
||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||
- name: Add Arc release
|
||||
|
||||
2
.github/workflows/pr.yml
vendored
2
.github/workflows/pr.yml
vendored
@@ -15,6 +15,8 @@ jobs:
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 17
|
||||
- name: Fetch latest Arc
|
||||
run: git clone --depth=1 --branch=master https://github.com/Anuken/Arc ../Arc
|
||||
- name: Setup Gradle
|
||||
uses: gradle/gradle-build-action@v2
|
||||
- name: Run unit tests
|
||||
|
||||
2
.github/workflows/push.yml
vendored
2
.github/workflows/push.yml
vendored
@@ -25,6 +25,8 @@ jobs:
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 17
|
||||
- name: Fetch latest Arc
|
||||
run: git clone --depth=1 --branch=master https://github.com/Anuken/Arc ../Arc
|
||||
- name: Setup Gradle
|
||||
uses: gradle/gradle-build-action@v2
|
||||
- name: Update bundles
|
||||
|
||||
@@ -122,8 +122,13 @@ dependencies{
|
||||
implementation arcModule("backends:backend-android")
|
||||
implementation 'com.jakewharton.android.repackaged:dalvik-dx:9.0.0_r3'
|
||||
|
||||
natives "com.github.Anuken.Arc:natives-android:$arcHash"
|
||||
natives "com.github.Anuken.Arc:natives-freetype-android:$arcHash"
|
||||
if(localArc){
|
||||
natives arcModule(":natives-android")
|
||||
natives arcModule(":natives-freetype-android")
|
||||
}else{
|
||||
natives "com.github.Anuken.Arc:natives-android:$arcHash"
|
||||
natives "com.github.Anuken.Arc:natives-freetype-android:$arcHash"
|
||||
}
|
||||
|
||||
def version, highestVersion
|
||||
new File((String)findSdkDir(), "/platforms").eachFileMatch ~/android-\d+/, {
|
||||
@@ -136,6 +141,9 @@ dependencies{
|
||||
}
|
||||
|
||||
task copyAndroidNatives(){
|
||||
if(localArc){
|
||||
dependsOn "com.github.Anuken:natives-android:jar", "com.github.Anuken:natives-freetype-android:jar"
|
||||
}
|
||||
configurations.natives.files.each{ jar ->
|
||||
copy{
|
||||
from zipTree(jar)
|
||||
|
||||
Reference in New Issue
Block a user