Skip to content

Update harbour_win64_ADS_msvc.yml #156

Update harbour_win64_ADS_msvc.yml

Update harbour_win64_ADS_msvc.yml #156

name: Harbour for Win64 using msvc
on:
push:
watch:
types: [started]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Checkout harbour/core repo
uses: actions/checkout@v2
with:
repository: harbour/core
path: harbour
- name: Installing dependencies
shell: cmd
run: |
vcpkg.exe install curl:x64-windows
vcpkg.exe install openssl:x64-windows
vcpkg integrate install
- name: Fixing Harbour hbssl.hbp
run: |
(Get-Content -path harbour\contrib\hbssl\hbssl.hbp) -replace 'libeay32','libcrypto-1_1-x64' | Set-Content -path harbour\contrib\hbssl\hbssl.hbp
(Get-Content -path harbour\contrib\hbssl\hbssl.hbp) -replace 'ssleay32','libssl-1_1-x64' | Set-Content -path harbour\contrib\hbssl\hbssl.hbp
(Get-Content -path harbour\contrib\hbssl\hbssl.hbc) -replace 'libeay32','libcrypto' | Set-Content -path harbour\contrib\hbssl\hbssl.hbc
(Get-Content -path harbour\contrib\hbssl\hbssl.hbc) -replace 'ssleay32','libssl' | Set-Content -path harbour\contrib\hbssl\hbssl.hbc
- name: Compile Harbour
shell: cmd
run: |
cd harbour
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
set HB_BUILD_MODE=c
set HB_USER_PRGFLAGS=-l-
set HB_BUILD_CONTRIBS=
set HB_WITH_OPENSSL=c:\vcpkg\packages\openssl-windows_x64-windows\include\
set HB_WITH_CURL=c:\vcpkg\packages\curl_x64-windows\include
set HB_OPENSSL_STATIC=yes
set HB_STATIC_OPENSSL=yes
set HB_STATIC_CURL=yes
set HB_BUILD_DYN=no
set HB_BUILD_CONTRIB_DYN=no
set HB_COMPILER=msvc64
win-make.exe
- name: Create output folders
shell: cmd
run: |
pwd
mkdir output
mkdir output\bin
mkdir output\lib
mkdir output\include
copy D:\a\Harbour_builder\Harbour_builder\harbour\bin\win\msvc64\*.exe output\bin
copy D:\a\Harbour_builder\Harbour_builder\harbour\lib\win\msvc64\*.* output\lib
copy D:\a\Harbour_builder\Harbour_builder\harbour\include\*.* output\include
- 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: harbour_win64_msvc_${{ env.TIME }}
path: output