Skip to content

Commit 9433d3d

Browse files
author
barrystyle
committed
add trial workflow for x86_64-w64-mingw32
1 parent 9aa1b3e commit 9433d3d

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/ravencoin-cross.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+

0 commit comments

Comments
 (0)