|
21 | 21 | if: runner.os == 'Linux'
|
22 | 22 | run: |
|
23 | 23 | sudo apt update
|
24 |
| - sudo apt install ocl-icd-opencl-dev |
| 24 | + sudo apt install ocl-icd-opencl-dev -y |
25 | 25 |
|
26 | 26 | - name: Check out code into the Go module directory
|
27 | 27 | uses: actions/checkout@v2
|
|
92 | 92 | asset_path: "./${{ env.archive }}"
|
93 | 93 | asset_name: "${{ env.asset_name }}"
|
94 | 94 | asset_content_type: application/zip
|
| 95 | + |
| 96 | + intergrations: |
| 97 | + runs-on: ubuntu-18.04 |
| 98 | + strategy: |
| 99 | + fail-fast: false |
| 100 | + matrix: |
| 101 | + # Build gnu-linux on ubuntu-18.04 and musl on ubuntu latest |
| 102 | + itegration: [ hiveos ] |
| 103 | + name: Integrating, ${{ matrix.itegration }} |
| 104 | + steps: |
| 105 | + - name: Fix LibOpenCL on Linux |
| 106 | + run: | |
| 107 | + sudo apt update |
| 108 | + sudo apt install ocl-icd-opencl-dev -y |
| 109 | +
|
| 110 | + - name: Check out code into the module directory |
| 111 | + uses: actions/checkout@v2 |
| 112 | + |
| 113 | + - name: Setup Rust |
| 114 | + uses: actions-rs/toolchain@v1 |
| 115 | + with: |
| 116 | + profile: minimal |
| 117 | + toolchain: stable |
| 118 | + override: true |
| 119 | + |
| 120 | + - name: Install CUDA Linux |
| 121 | + if: runner.os == 'Linux' |
| 122 | + uses: tmrlvi/cuda-toolkit@master |
| 123 | + with: |
| 124 | + cuda: '11.2.2' |
| 125 | + |
| 126 | + - name: Build ${{ matrix.itegration }} Script |
| 127 | + run: | |
| 128 | + cargo build --target=x86_64-unknown-linux-gnu --release --all |
| 129 | + binary_name="kaspa-miner-${{ github.event.release.tag_name }}-linux-gnu-amd64" |
| 130 | + asset_name="kaspa-miner-${{ matrix.itegration }}" |
| 131 | + 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}" |
| 136 | + echo "archive=${asset_name}.tgz" >> $GITHUB_ENV |
| 137 | + echo "asset_name=${asset_name}.tgz" >> $GITHUB_ENV |
| 138 | +
|
| 139 | + - name: Upload release asset |
| 140 | + uses: actions/upload-release-asset@v1 |
| 141 | + env: |
| 142 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 143 | + with: |
| 144 | + upload_url: ${{ github.event.release.upload_url }} |
| 145 | + asset_path: "./${{ env.archive }}" |
| 146 | + asset_name: "${{ env.asset_name }}" |
| 147 | + asset_content_type: application/zip |
0 commit comments