-
Notifications
You must be signed in to change notification settings - Fork 17
54 lines (44 loc) · 1.26 KB
/
harbour_darwin_osx.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
name: Harbour for Apple Darwin
on:
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
if: github.actor == github.event.repository.owner.login
steps:
- name: Checkout harbour/core repo
uses: actions/checkout@v2
with:
repository: harbour/core
path: harbour
- name: Install dependencies
run: |
brew install curl
brew install pcre
- name: Compile Harbour
run: |
cd harbour
export HB_WITH_CURL=/usr/local/Cellar/curl/7.69.1/include/
export HB_BUILD_CONTRIBS=""
make
- name: Create output folders
run: |
mkdir output
mkdir output/bin
cp harbour/bin/darwin/clang/* output/bin
mkdir output/lib
cp harbour/lib/darwin/clang/*.a output/lib
mkdir output/include
cp harbour/include/* output/include
- name: Get current time
uses: srfrnk/current-time@master
id: current-time
with:
format: YYYY_MM_DD
- name: Upload Harbour to artifact
env:
TIME: "${{ steps.current-time.outputs.formattedTime }}"
uses: actions/upload-artifact@v2
with:
name: harbour_darwin_osx_${{ env.TIME }}
path: output