forked from apache/thrift
-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (35 loc) · 1.16 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
name: Build
on: [push]
jobs:
Build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: brew install autoconf automake bison pkg-config boost
- name: Boostrap
run: |
export PATH="/usr/local/opt/bison/bin:$PATH"
./bootstrap.sh
- name: Configure
run: |
export PATH="/usr/local/opt/bison/bin:$PATH"
export CFLAGS="-Wno-deprecated-copy-with-user-provided-copy"
export CXXFLAGS="-Wno-deprecated-copy-with-user-provided-copy"
./configure
- name: Make
run: |
export PATH="/usr/local/opt/bison/bin:$PATH"
export CFLAGS="-Wno-deprecated-copy-with-user-provided-copy"
export CXXFLAGS="-Wno-deprecated-copy-with-user-provided-copy"
cd ./compiler/cpp
make
- name: Add executable permission
run: chmod +x ./compiler/cpp/thrift
- name: 'Zip files'
run: zip -j ./thrift.zip ./compiler/cpp/thrift
- name: 'Upload Artifact'
uses: actions/upload-artifact@v2
with:
name: thrift.zip
path: ./thrift.zip