File tree 1 file changed +56
-0
lines changed
1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : ' build ravencoin (x86_64-w64-mingw32)'
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-22.04
8
+ strategy :
9
+ matrix :
10
+ os : [x86_64-w64-mingw32]
11
+
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+
15
+ - name : Cache apt depencenies
16
+ uses : actions/cache@v2
17
+ id : cache-apt
18
+ with :
19
+ path : " ~/apt-cache"
20
+ key : apt-cache
21
+
22
+ - name : Cache depends
23
+ id : cache-dependencies
24
+ uses : actions/cache@v2
25
+ with :
26
+ path : depends/${{ matrix.os }}
27
+ key : ${{ matrix.os }}-${{ hashFiles('depends/packages/*.mk') }}
28
+
29
+ - name : Install dependencies
30
+ env :
31
+ CACHE_HIT : ${{steps.cache-apt.outputs.cache-hit}}
32
+ DEPS : build-essential libtool autotools-dev automake pkg-config bsdmainutils curl git ca-certificates ccache g++-mingw-w64-x86-64
33
+ run : |
34
+ if [[ "$CACHE_HIT" == 'true' ]]; then
35
+ sudo cp --force --recursive ~/apt-cache/* /
36
+ else
37
+ sudo apt-get update && sudo apt-get install -yq $DEPS
38
+ mkdir -p ~/apt-cache
39
+ for dep in $DEPS; do
40
+ dpkg -L $dep | while IFS= read -r f; do if test -f $f; then echo $f; fi; done | xargs cp --parents --target-directory ~/apt-cache/
41
+ done
42
+ fi
43
+
44
+ - name : Build depends
45
+ if : steps.cache-dependencies.outputs.cache-hit != 'true' && steps.cache-apt.outputs.cache-hit != 'true'
46
+ run : cd depends/ && make -j4 HOST=${{matrix.os}}
47
+
48
+ - name : Refresh automake configs
49
+ run : ./autogen.sh
50
+
51
+ - name : Configure automake
52
+ run : ./configure --prefix=`pwd`/depends/${{ matrix.os }}
53
+
54
+ - name : Build codebase
55
+ run : make -j4
56
+
You can’t perform that action at this time.
0 commit comments