@@ -76,11 +76,14 @@ jobs:
76
76
- name : Build on MacOS
77
77
if : matrix.os == 'macos-latest'
78
78
run : |
79
- cargo build --target=x86_64-apple-darwin --release -p kaspa-miner -p kaspaopencl
79
+ RUSTFLAGS="-framework OpenCL" cargo build --target=x86_64-apple-darwin --release -p kaspa-miner -p kaspaopencl
80
80
asset_name="kaspa-miner-${{ github.event.release.tag_name }}-osx-amd64"
81
- mv ./target/x86_64-apple-darwin/release/kaspa-miner ${asset_name}
82
- echo "archive=${asset_name}" >> $GITHUB_ENV
83
- echo "asset_name=${asset_name}" >> $GITHUB_ENV
81
+ mkdir ${asset_name}
82
+ mv ./target/x86_64-apple-darwin/release/kaspa-miner ${asset_name}/${asset_name}
83
+ mv ./target/x86_64-apple-darwin/release/libkaspa*.so ${asset_name}/
84
+ tar czvf ${asset_name}.tgz ${asset_name}
85
+ echo "archive=${asset_name}.tgz" >> $GITHUB_ENV
86
+ echo "asset_name=${asset_name}.tgz" >> $GITHUB_ENV
84
87
85
88
86
89
- name : Upload release asset
@@ -129,10 +132,10 @@ jobs:
129
132
binary_name="kaspa-miner-${{ github.event.release.tag_name }}-linux-gnu-amd64"
130
133
asset_name="kaspa-miner-${{ matrix.itegration }}"
131
134
strip ./target/x86_64-unknown-linux-gnu/release/kaspa-miner
132
- mkdir ${asset_name}
133
- mv ./target/x86_64-unknown-linux-gnu/release/kaspa-miner ${asset_name} /${binary_name}
134
- mv ./target/x86_64-unknown-linux-gnu/release/libkaspa*.so ${asset_name} /
135
- bash integrations/${{ matrix.itegration }}/build.sh "${{ github.event.release.tag_name }}" "${binary_name}" "${asset_name}"
135
+ mkdir kaspa-miner
136
+ mv ./target/x86_64-unknown-linux-gnu/release/kaspa-miner kaspa-miner /${binary_name}
137
+ mv ./target/x86_64-unknown-linux-gnu/release/libkaspa*.so kaspa-miner /
138
+ bash integrations/${{ matrix.itegration }}/build.sh "${{ github.event.release.tag_name }}" "${binary_name}" kaspa-miner
136
139
echo "archive=${asset_name}.tgz" >> $GITHUB_ENV
137
140
echo "asset_name=${asset_name}.tgz" >> $GITHUB_ENV
138
141
0 commit comments