File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -60,14 +60,30 @@ jobs:
60
60
- name : Run macOS Build
61
61
if : inputs.os_target == 'macos'
62
62
run : |
63
+ # Set up and build Protobuf 3.6.1
63
64
export PROTOBUF_DIR="$HOME/local/protobuf-3.6.1"
65
+ mkdir -p "$PROTOBUF_DIR"
66
+ curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protobuf-cpp-3.6.1.tar.gz
67
+ tar -xzf protobuf-cpp-3.6.1.tar.gz
68
+ cd protobuf-3.6.1
69
+ ./configure --prefix="$PROTOBUF_DIR"
70
+ make -j$(sysctl -n hw.logicalcpu)
71
+ make install
72
+ cd ..
73
+
74
+ # Export environment variables
64
75
export PKG_CONFIG_PATH="$PROTOBUF_DIR/lib/pkgconfig:$PKG_CONFIG_PATH"
65
76
export LDFLAGS="-L$PROTOBUF_DIR/lib $LDFLAGS"
66
77
export CPPFLAGS="-I$PROTOBUF_DIR/include $CPPFLAGS"
67
78
export LD_LIBRARY_PATH="$PROTOBUF_DIR/lib:$LD_LIBRARY_PATH"
68
79
export PATH="$PROTOBUF_DIR/bin:$PATH"
69
80
export PROTOC="$PROTOBUF_DIR/bin/protoc"
70
81
82
+ # Confirm protobuf installed
83
+ $PROTOC --version
84
+ pkg-config --modversion protobuf || echo "pkg-config failed"
85
+
86
+ # Run the macOS build script
71
87
echo -e "2\ny\ny" | ./build_adventurecoin_mac.sh
72
88
73
89
- name : Upload to GitHub Release
You can’t perform that action at this time.
0 commit comments