File tree 2 files changed +9
-13
lines changed
2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change 63
63
64
64
steps :
65
65
- uses : actions/checkout@v2
66
+ - uses : taiki-e/install-action@cargo-cross
66
67
67
68
- name : Install protobuf (Apt)
68
69
run : sudo apt-get update && sudo apt-get install -y protobuf-compiler
72
73
run : brew install protobuf
73
74
if : matrix.os == 'macos-latest'
74
75
75
- # Install cross compilation rust toolchain for Arm64 Mac
76
- -
uses :
actions-rust-lang/[email protected]
77
- with :
78
- target : ${{ matrix.target }}
79
- if : matrix.target == 'aarch64-apple-darwin'
80
-
81
- # Run linux aarch64 build in a cross-rs qemu environment
82
- - name : Install cross-compilation tools
83
- uses : taiki-e/setup-cross-toolchain-action@v1
84
- with :
85
- target : ${{ matrix.target }}
86
- if : matrix.target == 'aarch64-unknown-linux-gnu'
87
-
88
76
- name : Check protobuf
89
77
run : protoc --version; which protoc; echo "PROTOC IS ${PROTOC}";
90
78
Original file line number Diff line number Diff line change @@ -45,6 +45,14 @@ pre-build = [
45
45
" dpkg --add-architecture $CROSS_DEB_ARCH" ,
46
46
" apt-get update && apt-get --assume-yes install protobuf-compiler:$CROSS_DEB_ARCH"
47
47
]
48
+ [workspace .metadata .cross .target .x86_64-apple-darwin ]
49
+ pre-build = [
50
+ " brew install protobuf"
51
+ ]
52
+ [workspace .metadata .cross .target .aarch64-apple-darwin ]
53
+ pre-build = [
54
+ " brew install protobuf"
55
+ ]
48
56
49
57
[profile .release ]
50
58
lto = true # Optimize our binary at link stage.
You can’t perform that action at this time.
0 commit comments