Skip to content

Commit

Permalink
Attempting to fix linux compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
tmrlvi committed Dec 17, 2021
1 parent f1ece94 commit 0710aa6
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,26 @@ jobs:
toolchain: nightly
override: true

- name: Install cuda
- name: Install CUDA Linux
if: runner.os == 'Linux'
uses: Jimver/cuda-toolkit@v0.2.5
with:
cuda: '11.2.2'

- name: Install CUDA Windows
if: runner.os == 'Windows'
uses: Jimver/cuda-toolkit@v0.2.5
with:
cuda: '11.5.1'

- name: Build on Linux
if: runner.os == 'Linux'
# We're using musl to make the binaries statically linked and portable
# TODO: compile statically for gnu
run: |
sudo apt-get install -y musl-tools
rustup target add x86_64-unknown-linux-musl
cargo build --target=x86_64-unknown-linux-musl --release
cargo build --target=x86_64-unknown-linux-gnu --release
asset_name="kaspa-miner-${{ github.event.release.tag_name }}-linux-amd64"
strip ./target/x86_64-unknown-linux-musl/release/kaspa-miner
mv ./target/x86_64-unknown-linux-musl/release/kaspa-miner ${asset_name}
strip ./target/x86_64-unknown-linux-gnu/release/kaspa-miner
mv ./target/x86_64-unknown-linux-gnu/release/kaspa-miner ${asset_name}
echo "archive=${asset_name}" >> $GITHUB_ENV
echo "asset_name=${asset_name}" >> $GITHUB_ENV
Expand Down

0 comments on commit 0710aa6

Please sign in to comment.