Skip to content

Commit

Permalink
Testing actions + fixed derp
Browse files Browse the repository at this point in the history
  • Loading branch information
Rongmario committed Feb 9, 2024
1 parent 1c10700 commit 7c3a05b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 25 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: native
path: natives/build/output
# path: natives/build/output
# TODO:
path: natives/build/lib/main/debug/
33 changes: 9 additions & 24 deletions natives/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ plugins {

library {

def archString = System.getProperty('os.arch')
def archBits = archString.contains('64') ? 'x64' : 'x32'

baseName = (Os.isFamily(Os.FAMILY_WINDOWS) ? 'libImagineBreaker' : 'ImagineBreaker') + "_$archBits"
baseName = Os.isFamily(Os.FAMILY_WINDOWS) ? 'libImagineBreaker' : 'ImagineBreaker'

binaries.configureEach { CppBinary binary ->
def compileTask = binary.compileTask.get()
Expand All @@ -35,25 +32,13 @@ library {
}
}

targetMachines = [ machines.windows.x86_64, machines.macOS.x86_64, machines.linux.x86_64 ]

}
targetMachines = [
machines.windows.x86_64,
machines.windows.x86,
machines.macOS.x86_64,
machines.macOS.x86,
machines.linux.x86_64,
machines.linux.x86
]

tasks.named('assemble').configure {
finalizedBy 'moveNative'
}

tasks.register('moveNative', Copy) {
group 'build'
from 'build/lib/main/debug/'
include '**/**.dll', '**/**.so', '**/**.dylib'
eachFile {
it.path = it.name
}
into 'build/output'
doLast {
file('build/output').eachDir {
it.delete()
}
}
}

0 comments on commit 7c3a05b

Please sign in to comment.