-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (51 loc) · 2.33 KB
/
win64-build.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
name: Build and release for x64 Windows
on:
workflow_dispatch:
inputs:
releaseName:
description: "What to name the release"
required: true
tag:
description: "What to tag the release with"
required: true
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Update the apt repo
run: |
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update -y
- name: Install dependencies
run: sudo apt-get install libtool libboost-all-dev build-essential autotools-dev automake pkg-config bsdmainutils curl git nsis g++-mingw-w64-x86-64 qtdeclarative5-dev qtbase5-dev qttools5-dev qtdeclarative5-dev qt5-default libzmq3-dev libminiupnpc-dev software-properties-common libssl-dev libevent-dev libdb4.8-dev libdb4.8++-dev -y
- name: Depends make
run: |
#laittaa automaattisen tilan käyttämään posixia
sudo update-alternatives --install /usr/bin/x86_64-w64-mingw32-gcc x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-win32 60
sudo update-alternatives --install /usr/bin/x86_64-w64-mingw32-gcc x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix 90
sudo update-alternatives --config x86_64-w64-mingw32-gcc
sudo update-alternatives --install /usr/bin/x86_64-w64-mingw32-g++ x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-win32 60
sudo update-alternatives --install /usr/bin/x86_64-w64-mingw32-g++ x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix 90
sudo update-alternatives --config x86_64-w64-mingw32-g++
cd depends
sudo make HOST=x86_64-w64-mingw32
cd ..
- name: Autoconfig
run: sudo ./autogen.sh
- name: Configure
run: sudo CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=/
- name: Make
run: sudo make
- name: Make installer
run: |
sudo make deploy
ls -R
- name: Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ github.event.inputs.tag }}"
prerelease: true
title: "${{ github.event.inputs.releaseName }}"
files: "*.exe"