Skip to content

Commit

Permalink
feat: add ability to benchmark (#2)
Browse files Browse the repository at this point in the history
* feat: add ability to benchmark

* ci: add windows build

* ci: add windows build (#1)

* ci: try stable

* ci: add packages

* ci: add protoc

* fix: continue on error

* ci: try windows 2019

* ci: try differnet cuda
  • Loading branch information
stringhandler authored Apr 26, 2024
1 parent 0aadcc7 commit 97c1a96
Show file tree
Hide file tree
Showing 5 changed files with 4,443 additions and 16 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build_binaries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
name: Build Matrix of Binaries

'on':
push:
branches:
- main
- build-*

env:
TARI_TARGET_NETWORK: nextnet
TARI_NETWORK: nextnet

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019]

steps:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Jimver/[email protected]
with:
method: network
sub-packages: '["nvcc", "cudart"]'
- name: Install Windows dependencies
if: startsWith(runner.os,'Windows')
run: |
# vcpkg.exe install sqlite3:x64-windows zlib:x64-windows
# Bug in choco - need to install each package individually
choco upgrade llvm -y
choco upgrade protoc -y
- name: build (windows)
if: startsWith(runner.os,'Windows')
run: |
cd src
cd miner
cargo build --release --bin tarigpuminer
- uses: actions/upload-artifact@v4
with:
path: src/miner/target/release/tarigpuminer.exe
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/src/miner/target
config.json
Loading

0 comments on commit 97c1a96

Please sign in to comment.