Skip to content

Commit

Permalink
Merge pull request #25 from tmrlvi/stratum-client-blocking-send
Browse files Browse the repository at this point in the history
Stratum client blocking send
  • Loading branch information
tmrlvi authored Mar 31, 2022
2 parents d3cd948 + daefbb5 commit 9ca80af
Show file tree
Hide file tree
Showing 36 changed files with 5,213 additions and 3,938 deletions.
45 changes: 30 additions & 15 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install nightly toolchain
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -23,7 +23,7 @@ jobs:
with:
cuda: '11.2.2'
method: 'network'
sub-packages: '["nvcc"]'
sub-packages: '["nvcc", "cudart"]'

- name: Cache
uses: actions/cache@v2
Expand Down Expand Up @@ -75,14 +75,16 @@ jobs:
uses: Jimver/cuda-toolkit@v0.2.5
with:
cuda: '11.2.2'
method: 'local'
method: 'network'
sub-packages: '["nvcc", "cudart"]'

- name: Install CUDA Windows
if: runner.os == 'Windows'
uses: Jimver/cuda-toolkit@v0.2.5
with:
cuda: '11.5.1'
method: 'local'
method: 'network'
sub-packages: '["nvcc", "cudart"]'

- name: Cache
uses: actions/cache@v2
Expand All @@ -99,26 +101,32 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
args: -p kaspa-miner

- name: Run cargo test no asm
uses: actions-rs/cargo@v1
with:
command: test
args: --features=no-asm
args: -p kaspa-miner --features=no-asm


- name: Run cargo test no parking_lot
uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features
args: -p kaspa-miner --no-default-features

- name: Run cargo test shuttle
uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features --features=shuttle
args: -p kaspa-miner --no-default-features --features=shuttle

- name: Run cargo test for kaspaopencl
uses: actions-rs/cargo@v1
with:
command: test
args: -p kaspaopencl


test-release:
Expand Down Expand Up @@ -154,14 +162,16 @@ jobs:
uses: Jimver/cuda-toolkit@v0.2.5
with:
cuda: '11.2.2'
method: 'local'
method: 'network'
sub-packages: '["nvcc", "cudart"]'

- name: Install CUDA Windows
if: runner.os == 'Windows'
uses: Jimver/cuda-toolkit@v0.2.5
with:
cuda: '11.5.1'
method: 'local'
method: 'network'
sub-packages: '["nvcc", "cudart"]'

- name: Cache
uses: actions/cache@v2
Expand All @@ -178,34 +188,39 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
args: --release
args: --release -p kaspa-miner

- name: Run cargo test release no asm
uses: actions-rs/cargo@v1
with:
command: test
args: --features=no-asm --release
args: --features=no-asm --release -p kaspa-miner

- name: Run cargo test release no parking_lot
uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features --release
args: --no-default-features --release -p kaspa-miner

- name: Run cargo test release shuttle
uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features --features=shuttle --release
args: --no-default-features --features=shuttle --release -p kaspa-miner

- name: Run cargo test for kaspaopencl
uses: actions-rs/cargo@v1
with:
command: test
args: --release -p kaspaopencl
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install nightly toolchain
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -218,7 +233,7 @@ jobs:
with:
cuda: '11.2.2'
method: 'network'
sub-packages: '["nvcc"]'
sub-packages: '["nvcc", "cudart"]'

- name: Cache
uses: actions/cache@v2
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,19 @@ jobs:

- name: Install CUDA Linux
if: runner.os == 'Linux'
uses: tmrlvi/cuda-toolkit@master
uses: Jimver/cuda-toolkit@v0.2.5
with:
cuda: '11.2.2'
method: 'network'
sub-packages: '["nvcc", "cudart"]'

- name: Install CUDA Windows
if: runner.os == 'Windows'
uses: tmrlvi/cuda-toolkit@master
uses: Jimver/cuda-toolkit@v0.2.5
with:
cuda: '11.5.1'
method: 'network'
sub-packages: '["nvcc", "cudart"]'

- name: Build on Linux GNU
if: matrix.os == 'ubuntu-18.04'
Expand Down Expand Up @@ -122,9 +126,11 @@ jobs:

- name: Install CUDA Linux
if: runner.os == 'Linux'
uses: tmrlvi/cuda-toolkit@master
uses: Jimver/cuda-toolkit@v0.2.5
with:
cuda: '11.2.2'
method: 'network'
sub-packages: '["nvcc", "cudart"]'

- name: Build ${{ matrix.itegration }} Script
run: |
Expand Down
Loading

0 comments on commit 9ca80af

Please sign in to comment.