Skip to content

Commit

Permalink
Fixing hiveos integration
Browse files Browse the repository at this point in the history
  • Loading branch information
tmrlvi committed Jan 18, 2022
1 parent 2ff278a commit f25710f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,14 @@ jobs:
- name: Build on MacOS
if: matrix.os == 'macos-latest'
run: |
cargo build --target=x86_64-apple-darwin --release -p kaspa-miner -p kaspaopencl
RUSTFLAGS="-framework OpenCL" cargo build --target=x86_64-apple-darwin --release -p kaspa-miner -p kaspaopencl
asset_name="kaspa-miner-${{ github.event.release.tag_name }}-osx-amd64"
mv ./target/x86_64-apple-darwin/release/kaspa-miner ${asset_name}
echo "archive=${asset_name}" >> $GITHUB_ENV
echo "asset_name=${asset_name}" >> $GITHUB_ENV
mkdir ${asset_name}
mv ./target/x86_64-apple-darwin/release/kaspa-miner ${asset_name}/${asset_name}
mv ./target/x86_64-apple-darwin/release/libkaspa*.so ${asset_name}/
tar czvf ${asset_name}.tgz ${asset_name}
echo "archive=${asset_name}.tgz" >> $GITHUB_ENV
echo "asset_name=${asset_name}.tgz" >> $GITHUB_ENV
- name: Upload release asset
Expand Down Expand Up @@ -129,10 +132,10 @@ jobs:
binary_name="kaspa-miner-${{ github.event.release.tag_name }}-linux-gnu-amd64"
asset_name="kaspa-miner-${{ matrix.itegration }}"
strip ./target/x86_64-unknown-linux-gnu/release/kaspa-miner
mkdir ${asset_name}
mv ./target/x86_64-unknown-linux-gnu/release/kaspa-miner ${asset_name}/${binary_name}
mv ./target/x86_64-unknown-linux-gnu/release/libkaspa*.so ${asset_name}/
bash integrations/${{ matrix.itegration }}/build.sh "${{ github.event.release.tag_name }}" "${binary_name}" "${asset_name}"
mkdir kaspa-miner
mv ./target/x86_64-unknown-linux-gnu/release/kaspa-miner kaspa-miner/${binary_name}
mv ./target/x86_64-unknown-linux-gnu/release/libkaspa*.so kaspa-miner/
bash integrations/${{ matrix.itegration }}/build.sh "${{ github.event.release.tag_name }}" "${binary_name}" kaspa-miner
echo "archive=${asset_name}.tgz" >> $GITHUB_ENV
echo "asset_name=${asset_name}.tgz" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion integrations/hiveos/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
integrations/hiveos/createmanifest.sh $1 $2
mkdir $3
cp h-manifest.conf integrations/hiveos/*.sh $2/* $3
tar czvf $3.tgz $3
tar czvf $3-hiveos.tgz $3
6 changes: 3 additions & 3 deletions integrations/hiveos/createmanifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ CUSTOM_BUILD=0
CUSTOM_MINERBIN=$2
# Full path to miner config file
CUSTOM_CONFIG_FILENAME=/hive/miners/custom/$CUSTOM_NAME/config.ini
CUSTOM_CONFIG_FILENAME=/hive/miners/custom/\$CUSTOM_NAME/config.ini
# Full path to log file basename. WITHOUT EXTENSION (don't include .log at the end)
# Used to truncate logs and rotate,
# E.g. /var/log/miner/mysuperminer/somelogname (filename without .log at the end)
CUSTOM_LOG_BASENAME=/var/log/miner/$CUSTOM_NAME
CUSTOM_LOG_BASENAME=/var/log/miner/\$CUSTOM_NAME
WEB_PORT=3338
EOF
EOF

0 comments on commit f25710f

Please sign in to comment.