-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (54 loc) · 2.5 KB
/
win64-build-ftpupload.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
name: Build for x64 Windows and upload to an FTP server
on:
workflow_dispatch:
inputs:
ftpMethod:
description: "What FTP method to use (FTP or SFTP, default SFTP)"
default: "sftp"
required: true
ftpPort:
description: "What port to use for the connection (default 22)"
default: "22"
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: Upload
uses: SamKirkland/[email protected]
env:
FTP_SERVER: "${{ secrets.FTP_SERVER }}"
FTP_USERNAME: "${{ secrets.FTP_USERNAME }}"
FTP_PASSWORD: "${{ secrets.FTP_PASSWORD }}"
METHOD: "${{ github.event.inputs.ftpMethod }}"
PORT: "${{ github.event.inputs.ftpPort }}"
ARGS: --include-glob=*.exe