Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
xnorpx committed Dec 2, 2023
1 parent 9defedd commit 3a8b3d8
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
28 changes: 27 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,24 @@ jobs:
with:
toolchain: stable

- name: Build release binary
- name: Configure build for amd64
uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64

- uses: Jimver/[email protected]
id: cuda-toolkit
with:
cuda: '12.1.0'
method: 'network'
sub-packages: '[]'
non-cuda-sub-packages: '["libcublas"]'

- name: Build cuda release binary
shell: bash
env:
CUDA_COMPUTE_CAP: ${{ matrix.computecap }}
if: matrix.feature == 'cuda'
run: |
cargo build --verbose --release --features ${{ matrix.feature }}
if [ "${{ matrix.os }}" = "windows-latest" ]; then
Expand All @@ -113,6 +127,18 @@ jobs:
fi
echo "BIN=$bin" >> $GITHUB_ENV
- name: Build cuda release binary
shell: bash
if: matrix.feature == ''
run: |
cargo build --verbose --release
if [ "${{ matrix.os }}" = "windows-latest" ]; then
bin="target/${{ matrix.build }}/release/blue_candle.exe"
else
bin="target/${{ matrix.build }}/release/blue_candle"
fi
echo "BIN=$bin" >> $GITHUB_ENV
- name: Determine archive name
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "blue-candle"
version = "0.0.2"
version = "0.0.3"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down

0 comments on commit 3a8b3d8

Please sign in to comment.