-
Notifications
You must be signed in to change notification settings - Fork 222
147 lines (124 loc) · 4.56 KB
/
maven.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
name: Java CI
on: [push]
jobs:
build-java11:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
java-package: jdk+fx
- name: Load libagdb from cache
id: libagdb
uses: actions/cache@v1
with:
path: libagdb
key: libagdb
- name: Compile libagdb
# libagdb (agdbinfo) needs to be built from source
if: steps.libagdb.outputs.cache-hit != 'true'
run: |
sudo apt install git autoconf automake autopoint libtool pkg-config
git clone https://github.com/libyal/libagdb.git && cd libagdb/ && git checkout e858e15
sudo ./synclibs.sh && sudo ./autogen.sh && sudo ./configure
- name: Load imagemagick from cache
id: imagemagick
uses: actions/cache@v1
with:
path: ImageMagick-7.1.0
key: imagemagick
- name: Compile imagemagick
# imagemagick 7 needs to be built from source
if: steps.imagemagick.outputs.cache-hit != 'true'
run: |
sudo apt-get install gsfonts
git clone https://github.com/ImageMagick/ImageMagick.git ImageMagick-7.1.0
cd ImageMagick-7.1.0/
sudo ./configure --with-modules && sudo make
- name: Install External Tools
run: |
sudo apt-get update && sudo apt install \
libscca-utils rifiuti2 libevtx-utils libevt-utils \
libmsiecf-utils=20181227-1.1 \
pff-tools=20180714-2 \
libesedb-utils=20181229-3.1 \
tesseract-ocr=4.1.1-2build2 \
tesseract-ocr-por=1:4.00~git30-7274cfa-1 \
python3-pip
sudo perl -MCPAN -e 'install Parse::Win32Registry'
pip install jep==4.0.3
cd libagdb/ && sudo make install
sudo ldconfig /usr/local/lib
cd ..
sudo apt-get install gsfonts
cd ImageMagick-7.1.0/ && sudo make install
sudo ldconfig /usr/local/lib
- name: Build with Maven
run: mvn -B package --file pom.xml
- shell: bash
run:
cd target && mv release iped-snapshot-$GITHUB_SHA && tar -zcvf ../iped-snapshot.tar.gz iped-snapshot-$GITHUB_SHA
- name: Upload snapshot
uses: actions/upload-artifact@v1
with:
name: iped-snapshot-${{ github.sha }}
path: iped-snapshot.tar.gz
build-java14:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: curl -O "https://download.bell-sw.com/java/14.0.2+13/bellsoft-jdk14.0.2+13-linux-amd64-full.tar.gz"
- name: Set up JDK 14
uses: actions/setup-java@v1
with:
java-version: 14
jdkFile: ./bellsoft-jdk14.0.2+13-linux-amd64-full.tar.gz
- name: Load libagdb from cache
id: libagdb
uses: actions/cache@v1
with:
path: libagdb
key: libagdb
- name: Compile libagdb
# libagdb (agdbinfo) needs to be built from source
if: steps.libagdb.outputs.cache-hit != 'true'
run: |
sudo apt install git autoconf automake autopoint libtool pkg-config
git clone https://github.com/libyal/libagdb.git && cd libagdb/ && git checkout e858e15
sudo ./synclibs.sh && sudo ./autogen.sh && sudo ./configure
- name: Load imagemagick from cache
id: imagemagick
uses: actions/cache@v1
with:
path: ImageMagick-7.1.0
key: imagemagick
- name: Compile imagemagick
# imagemagick 7 needs to be built from source
if: steps.imagemagick.outputs.cache-hit != 'true'
run: |
sudo apt-get install gsfonts
git clone https://github.com/ImageMagick/ImageMagick.git ImageMagick-7.1.0
cd ImageMagick-7.1.0/
sudo ./configure --with-modules && sudo make
- name: Install External Tools
run: |
sudo apt-get update && sudo apt install \
libscca-utils rifiuti2 libevtx-utils libevt-utils \
libmsiecf-utils=20181227-1.1 \
pff-tools=20180714-2 \
libesedb-utils=20181229-3.1 \
tesseract-ocr=4.1.1-2build2 \
tesseract-ocr-por=1:4.00~git30-7274cfa-1 \
python3-pip
sudo perl -MCPAN -e 'install Parse::Win32Registry'
pip install jep==4.0.3
cd libagdb/ && sudo make install
sudo ldconfig /usr/local/lib
cd ..
sudo apt-get install gsfonts
cd ImageMagick-7.1.0/ && sudo make install
sudo ldconfig /usr/local/lib
- name: Build with Maven
run: mvn -B package --file pom.xml