-
Notifications
You must be signed in to change notification settings - Fork 9
139 lines (114 loc) · 3.67 KB
/
build.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
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
name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
generate:
name: Build + Publish
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up Ruby 3.1
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.3
- name: Install bash.ly and build
run: |
gem install bashly
bashly generate
- uses: actions/upload-artifact@v3
with:
name: generated-executive-script
path: gs
test-on-ubuntu-macos:
name: Test install dependency
needs: [generate]
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-20.04, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/download-artifact@v3
with:
name: generated-executive-script
path: gs
- name: Install dev
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
brew update
brew install bash
alias bash=$(brew --prefix)/bin/bash
fi
sudo mkdir /opt/graphscope
sudo chown -R $(id -u):$(id -g) /opt/graphscope
bash gs/gs install-deps dev --install-prefix /opt/graphscope --v6d-version v0.15.0
cat ~/.graphscope_env
- name: Get GraphScope Source
run: git clone --depth=1 https://github.com/alibaba/graphscope
- name: Build analytical engine
run: source ~/.graphscope_env && cd graphscope && make analytical
- name: Build interactive engine
run: source ~/.graphscope_env && cd graphscope && make interactive
- name: Build learning engine
run: source ~/.graphscope_env && cd graphscope && make learning
- name: Build coordinator
if: false # Known issue with pyarrow 6.0, remove after fixed
run: |
cd graphscope
source ~/.graphscope_env
make coordinator
- name: Build client
if: false
run: |
cd graphscope
source ~/.graphscope_env
make client
test-on-centos-8:
needs: [ generate ]
runs-on: ubuntu-22.04
container:
image: centos:latest
steps:
- uses: actions/download-artifact@v3
with:
name: generated-executive-script
path: gs
- name: Install dev
run: |
bash gs/gs install-deps dev --install-prefix /opt/graphscope --v6d-version v0.15.0
cat ~/.graphscope_env
- name: Get GraphScope Source
run: git clone --depth=1 https://github.com/alibaba/graphscope
- name: Build analytical engine
run: source ~/.graphscope_env && cd graphscope && make analytical
- name: Build interactive engine
run: source ~/.graphscope_env && cd graphscope && make interactive
- name: Build learning engine
run: source ~/.graphscope_env && cd graphscope && make learning
test-on-centos-7:
needs: [ generate ]
runs-on: ubuntu-22.04
container:
image: centos:7
steps:
- uses: actions/download-artifact@v3
with:
name: generated-executive-script
path: gs
- name: Install dev
run: |
bash gs/gs install-deps dev --install-prefix /opt/graphscope --v6d-version v0.15.0
cat ~/.graphscope_env
- name: Get GraphScope Source
run: git clone --depth=1 https://github.com/alibaba/graphscope
- name: Build analytical engine
run: source ~/.graphscope_env && cd graphscope && make analytical
- name: Build interactive engine
run: source ~/.graphscope_env && cd graphscope && make interactive
- name: Build learning engine
run: source ~/.graphscope_env && cd graphscope && make learning