-
Notifications
You must be signed in to change notification settings - Fork 44
80 lines (69 loc) · 2.88 KB
/
modharbour_win32_msvc_ads.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: modharbour for Win32 with msvc and ADS
on:
push:
paths:
- 'apache.prg'
- 'mod_harbour.c'
- 'windows/modharbour.hbp'
- 'windows/mod.hbp'
- '.github/workflows/modharbour_win32_msvc_ads.yml'
jobs:
build:
runs-on: windows-latest
if: github.actor == github.event.repository.owner.login
steps:
- uses: actions/checkout@v2
- name: Checkout harbour/core repo
uses: actions/checkout@v2
with:
repository: harbour/core
path: harbour
- name: Install dependencies
run: |
choco install apache-httpd --x86 --params '"/installLocation:C:"'
(new-object System.Net.WebClient).DownloadFile('https://bitbucket.org/lorenzodla/mod_harbour_actions_resources/downloads/OpenSSL-Win32.zip', 'C:\temp\OpenSSL-Win32.zip')
Expand-Archive -LiteralPath C:\temp\OpenSSL-Win32.zip -DestinationPath C:\OpenSSL -Force
(new-object System.Net.WebClient).DownloadFile('https://bitbucket.org/lorenzodla/mod_harbour_actions_resources/downloads/curl-7.54.0-win32-mingw.zip', 'C:\temp\curl-7.54.0-win32-mingw.zip')
Expand-Archive -LiteralPath C:\temp\curl-7.54.0-win32-mingw.zip -DestinationPath C:\curl -Force
(new-object System.Net.WebClient).DownloadFile('https://bitbucket.org/lorenzodla/mod_harbour_actions_resources/downloads/acesdk.zip', 'C:\temp\acesdk.zip')
Expand-Archive -LiteralPath C:\temp\acesdk.zip -DestinationPath C:\acesdk -Force
- name: Compile Harbour
shell: cmd
run: |
cd harbour
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86
set HB_BUILD_MODE=c
set HB_USER_PRGFLAGS=-l-
set HB_BUILD_CONTRIBS=
set HB_WITH_OPENSSL=C:\OpenSSL\include
set HB_WITH_CURL=C:\curl\include
set HB_WITH_ADS=C:\acesdk
set HB_COMPILER=msvc
win-make.exe
- name: Compile mod_harbour
shell: cmd
run: |
cd windows
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86
..\harbour\bin\win\msvc\hbmk2 modharbour.hbp -comp=msvc -Lc:\Apache24\lib -dHB_WITH_ADS="c:\acesdk\" rddads.hbc
- name: Create output folders
shell: cmd
run: |
mkdir output
mkdir output\samples
copy windows\mod_harbour.so output
copy windows\libharbour.dll output
copy windows\readme.md output
xcopy samples output\samples\ /E
- name: Get current time
uses: srfrnk/current-time@master
id: current-time
with:
format: YYYY_MM_DD
- name: Upload mod_harbour to artifact
env:
TIME: "${{ steps.current-time.outputs.formattedTime }}"
uses: actions/upload-artifact@v2
with:
name: modharbour_win32_msvc_ads_${{ env.TIME }}
path: output