Skip to content

Commit

Permalink
build artifacts optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
tontechio committed Oct 21, 2021
1 parent 848b6b3 commit 528ad10
Showing 1 changed file with 11 additions and 32 deletions.
43 changes: 11 additions & 32 deletions .github/workflows/pow-miner-opencl-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,53 +49,32 @@ jobs:
- name: cmake build pow-miner-opencl
run: |
cd build && cmake --build . --target pow-miner-opencl
cd build && cmake --build . --target pow-miner-opencl -j2
- name: cmake build pow-miner-cuda
run: |
cd build && cmake --build . --target pow-miner-cuda
- name: cmake build pow-miner
run: |
cd build && cmake --build . --target pow-miner
- name: cmake build lite-client
run: |
cd build && cmake --build . --target lite-client
- name: cmake build tonlib-cli
run: |
cd build && cmake --build . --target tonlib-cli
cd build && cmake --build . --target pow-miner-cuda -j2
- name: cmake build tonlib-cuda-cli
run: |
cd build && cmake --build . --target tonlib-cuda-cli
cd build && cmake --build . --target tonlib-cuda-cli -j2
- name: cmake build tonlib-opencl-cli
run: |
cd build && cmake --build . --target tonlib-opencl-cli
cd build && cmake --build . --target tonlib-opencl-cli -j2
- name: naming convention
run: |
chmod +x build/crypto/pow-miner-opencl
chmod +x build/crypto/pow-miner-cuda
chmod +x build/crypto/pow-miner
chmod +x build/lite-client/lite-client
chmod +x build/tonlib/tonlib-cli
chmod +x build/tonlib/tonlib-cuda-cli
chmod +x build/tonlib/tonlib-opencl-cli
tar -zcf build/crypto/pow-miner-opencl-${{ matrix.os }}-x86-64.tar.gz build/crypto/pow-miner-opencl
tar -zcf build/crypto/pow-miner-cuda-${{ matrix.os }}-x86-64.tar.gz build/crypto/pow-miner-cuda
tar -zcf build/crypto/pow-miner-${{ matrix.os }}-x86-64.tar.gz build/crypto/pow-miner
tar -zcf build/lite-client/lite-client-${{ matrix.os }}-x86-64.tar.gz build/lite-client/lite-client
tar -zcf build/tonlib/tonlib-cli-${{ matrix.os }}-x86-64.tar.gz build/tonlib/tonlib-cli
tar -zcf build/tonlib/tonlib-cuda-cli-${{ matrix.os }}-x86-64.tar.gz build/tonlib/tonlib-cuda-cli
tar -zcf build/tonlib/tonlib-opencl-cli-${{ matrix.os }}-x86-64.tar.gz build/tonlib/tonlib-opencl-cli
chmod +x build/crypto/pow-miner-opencl && cp build/crypto/pow-miner-opencl .
chmod +x build/crypto/pow-miner-cuda && cp build/crypto/pow-miner-cuda .
chmod +x build/tonlib/tonlib-opencl-cli && cp build/tonlib/tonlib-opencl-cli .
chmod +x build/tonlib/tonlib-cuda-cli && cp build/tonlib/tonlib-cuda-cli .
tar -zcf build/crypto/minertools-opencl-${{ matrix.os }}-x86-64.tar.gz pow-miner-opencl tonlib-opencl-cli
tar -zcf build/crypto/minertools-cuda-${{ matrix.os }}-x86-64.tar.gz pow-miner-cuda tonlib-cuda-cli
- name: packing
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: build/crypto/pow-miner-opencl-${{ matrix.os }}-x86-64.tar.gz,build/crypto/pow-miner-cuda-${{ matrix.os }}-x86-64.tar.gz,build/crypto/pow-miner-${{ matrix.os }}-x86-64.tar.gz,build/lite-client/lite-client-${{ matrix.os }}-x86-64.tar.gz,build/tonlib/tonlib-cli-${{ matrix.os }}-x86-64.tar.gz,build/tonlib/tonlib-cuda-cli-${{ matrix.os }}-x86-64.tar.gz
artifacts: build/crypto/minertools-*
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 528ad10

Please sign in to comment.