File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed
src/main/java/airsquared/blobsaver/app/natives Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -16,16 +16,25 @@ jobs:
16
16
uses : actions/setup-java@v1
17
17
with :
18
18
java-version : ' 16'
19
+ - name : Install Linux dependencies
20
+ run : brew install libimobiledevice libirecovery && P=/home/linuxbrew/.linuxbrew/lib; sudo ln -s $P/libimobiledevice-1.0.so $P/libirecovery-1.0.so $P/libplist-2.0.so /usr/lib/
21
+ if : runner.os == 'Linux'
19
22
- name : Gradle build
20
23
uses : eskatos/gradle-command-action@v1
21
24
with :
22
25
arguments : build --no-daemon
23
- wrapper -cache-enabled : true
26
+ distributions -cache-enabled : true
24
27
dependencies-cache-enabled : true
25
28
- uses : actions/upload-artifact@v2
26
29
with :
27
30
name : ${{ runner.os }}
28
31
path : build/distributions/*
32
+ - name : Upload reports on failure
33
+ if : ${{ failure() }}
34
+ uses : actions/upload-artifact@v2
35
+ with :
36
+ name : failure-${{ runner.os }}
37
+ path : build/reports/
29
38
release :
30
39
name : Create pubilc releases
31
40
runs-on : ubuntu-latest
35
44
- name : Get artifacts
36
45
uses : actions/download-artifact@v2
37
46
- name : Get version from commit
38
- run : echo "VERSION=$(echo ${{ github.event.commits[0].message }} | awk '{print $2}')" >> $GITHUB_ENV
47
+ run : echo "VERSION=$(echo ${{ github.event.commits[0].message }} | awk '{print $2}')" >> $GITHUB_ENV
39
48
- name : Release public builds
40
49
uses : " marvinpinto/action-automatic-releases@latest"
41
50
with :
Original file line number Diff line number Diff line change @@ -54,6 +54,15 @@ public class Libplist {
54
54
public static native void toXml (Pointer plist , PointerByReference plist_xml , PointerByReference length );
55
55
56
56
static {
57
- NativeUtils .register (Libplist .class , "plist" );
57
+ try {
58
+ NativeUtils .register (Libplist .class , "plist" );
59
+ } catch (UnsatisfiedLinkError e ) {
60
+ try {
61
+ NativeUtils .register (Libplist .class , "plist-2.0" );
62
+ } catch (UnsatisfiedLinkError e2 ) {
63
+ e .addSuppressed (e2 );
64
+ throw e ;
65
+ }
66
+ }
58
67
}
59
68
}
You can’t perform that action at this time.
0 commit comments