Repository navigation
77 lines (75 loc) · 2.39 KB
/
Copy pathwindows.yml
File metadata and controls
77 lines (75 loc) · 2.39 KB
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
name: Windows compilation
on:
release:
types: [published]
branches: master
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
pull_request:
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
arch: win64_mingw81
modules: qtcharts
- name: Install Keystone
shell: bash
run: |
mkdir lib
curl -L https://github.com/keystone-engine/keystone/releases/download/0.9.2/keystone-0.9.2-win64.zip -o keystone.zip
unzip keystone.zip
echo "Installing Keystone along MinGW and QT - in $Qt5_Dir"
cd keystone-*
mv *.dll ../lib
cp -rv include/* $Qt5_Dir/include
cd ..
rm -rf keystone.zip keystone-*
- name: Install Capstone
shell: bash
run: |
curl -L https://github.com/aquynh/capstone/releases/download/4.0.2/capstone-4.0.2-win64.zip -o capstone.zip
unzip capstone.zip
echo "Installing Capstone along MinGW and QT - in $Qt5_Dir"
cd capstone-*
mv *.dll ../lib
cp -rv include/* $Qt5_Dir/include
cd ..
rm -rf capstone.zip capstone-*
- name: Call qmake
shell: cmd
# Inspired by https://github.com/jurplel/install-qt-action/blob/master/.github/workflows/test.yml
run: |
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
qmake fhex.pro
- name: Compile the project with make
run: |
dir
make -j
- name: Add required MinGW DLLs
shell: cmd
# We will also need visual studio tools here to find out the dependencies (dumpbin)
run: |
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
python bundle-exe-with-dlls.py
- name: Add QT dependencies with WinDeploy
shell: cmd
# Disabled angle and opengl since we don't do 3D graphics here (yet?)
run: |
windeployqt %BUNDLE_DIR%\fhex.exe --no-angle --no-opengl-sw
- name: Upload the binary artifact
uses: actions/upload-artifact@v1
with:
name: windows-build
path: ${{env.BUNDLE_DIR}}