-
Notifications
You must be signed in to change notification settings - Fork 16
64 lines (53 loc) · 1.95 KB
/
harbour_msvc_64.yml
File metadata and controls
64 lines (53 loc) · 1.95 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
name: Harbour for Windows 64 using MSVC
on:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Checkout harbour/core repo
uses: actions/checkout@v4
with:
repository: harbour/core
path: harbour
- name: Install dependencies
run: |
(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
- name: Setup MSVC environment (x64)
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- name: Compile and install Harbour
shell: cmd
run: |
cd harbour
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_STATIC_OPENSSL=yes
set HB_STATIC_CURL=yes
set HB_COMPILER=msvc64
set HB_INSTALL_PREFIX=%GITHUB_WORKSPACE%\output
win-make.exe || exit /b 1
win-make.exe install || exit /b 1
- name: Get current time
id: current-time
shell: pwsh
run: |
$time = Get-Date -Format "yyyy_MM_dd"
"formattedTime=$time" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: Upload Harbour to artifact
env:
TIME: "${{ steps.current-time.outputs.formattedTime }}"
uses: actions/upload-artifact@v4
with:
name: harbour_win64_msvc_${{ env.TIME }}
path: output