forked from duckdb/duckdb
-
Notifications
You must be signed in to change notification settings - Fork 0
145 lines (120 loc) · 3.75 KB
/
OSX.yml
File metadata and controls
145 lines (120 loc) · 3.75 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
name: OSX
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || '' }}-${{ github.base_ref || '' }}
cancel-in-progress: true
defaults:
run:
shell: bash
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
AWS_ACCESS_KEY_ID: AKIAVBLKPL2ZW2T7TYFQ
AWS_SECRET_ACCESS_KEY: ${{ secrets.NODE_PRE_GYP_SECRETACCESSKEY }}
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
jobs:
xcode-debug:
name: OSX Debug
runs-on: macos-latest
env:
TREAT_WARNINGS_AS_ERRORS: 1
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Build
run: make debug
- name: Test
run: make unittestci
- name: Amalgamation
run: |
python scripts/amalgamation.py --extended
python scripts/parquet_amalgamation.py
cd src/amalgamation
clang++ -std=c++11 -O0 -Wall -Werror -emit-llvm -S duckdb.cpp parquet-amalgamation.cpp
clang++ -DNDEBUG -O0 -std=c++11 -Wall -Werror -emit-llvm -S duckdb.cpp parquet-amalgamation.cpp
clang++ -DDEBUG -O0 -std=c++11 -Wall -Werror -emit-llvm -S duckdb.cpp parquet-amalgamation.cpp
xcode-release:
name: OSX Release
runs-on: macos-latest
needs: xcode-debug
env:
BUILD_ICU: 1
BUILD_TPCH: 1
BUILD_FTS: 1
BUILD_REST: 1
BUILD_JDBC: 1
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Build
run: make
- name: Unit Test
run: make allunit
- name: Tools Tests
run: |
python tools/shell/shell-test.py build/release/duckdb
java -cp build/release/tools/jdbc/duckdb_jdbc.jar org.duckdb.test.TestDuckDBJDBC
- name: Examples
run: |
(cd examples/embedded-c; make)
(cd examples/embedded-c++; make)
(cd examples/jdbc; make; make maven)
- name: Deploy
run: |
python scripts/amalgamation.py
zip -j duckdb_cli-osx-amd64.zip build/release/duckdb
zip -j libduckdb-osx-amd64.zip build/release/src/libduckdb*.dylib src/amalgamation/duckdb.hpp src/include/duckdb.h
python scripts/asset-upload-gha.py libduckdb-osx-amd64.zip duckdb_cli-osx-amd64.zip duckdb_jdbc-osx-amd64.jar=build/release/tools/jdbc/duckdb_jdbc.jar
- uses: actions/upload-artifact@v2
with:
name: duckdb-binaries-osx
path: |
libduckdb-osx-amd64.zip
duckdb_cli-osx-amd64.zip
build/release/tools/jdbc/duckdb_jdbc.jar
xcode-extensions:
name: OSX Extensions Release
runs-on: macos-latest
needs: xcode-debug
env:
BUILD_VISUALIZER: 1
BUILD_ICU: 1
BUILD_TPCH: 1
BUILD_TPCDS: 1
BUILD_FTS: 1
BUILD_HTTPFS: 1
AWS_ACCESS_KEY_ID: ${{secrets.S3_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.S3_KEY}}
AWS_DEFAULT_REGION: us-east-1
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Install OpenSSL
run: |
brew install openssl
- name: Build
run: |
export OPENSSL_ROOT_DIR=`brew --prefix openssl`
echo $OPENSSL_ROOT_DIR
make
- name: Deploy
run: |
if [[ "$GITHUB_REF" =~ ^(refs/heads/master|refs/tags/v.+)$ && "$GITHUB_REPOSITORY" = "duckdb/duckdb" ]] ; then
pip install awscli
./scripts/extension-upload.sh osx_amd64
./scripts/extension-upload-test.sh
else
./scripts/extension-upload-test.sh local
fi