mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-04-20 00:14:45 +00:00
Github build on Linux, attempt #1
This commit is contained in:
parent
660a789e72
commit
e6cf145aa9
1 changed files with 37 additions and 0 deletions
37
.cargo/.workflows/rust.yml
Normal file
37
.cargo/.workflows/rust.yml
Normal file
|
@ -0,0 +1,37 @@
|
|||
name: Rust
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
ROCM_VERSION: "5.7.3"
|
||||
|
||||
jobs:
|
||||
build_lin:
|
||||
name: Build and publish (Linux)
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
- name: Install ROCm
|
||||
run: |
|
||||
sudo mkdir --parents --mode=0755 /etc/apt/keyrings
|
||||
sudo sh -c 'wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | gpg --dearmor | tee /etc/apt/keyrings/rocm.gpg > /dev/null'
|
||||
sudo sh -c 'echo deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/${ROCM_VERSION} jammy main > /etc/apt/sources.list.d/rocm.list'
|
||||
sudo apt-get update
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends rocminfo rocm-gdb rocprofiler rocm-smi-lib hip-runtime-amd comgr hipblaslt-dev hipfft-dev rocblas-dev rocsolver-dev rocsparse-dev miopen-hip-dev rocm-device-libs
|
||||
sudo echo 'export PATH="$PATH:/opt/rocm/bin"' > /etc/profile.d/rocm.sh && \
|
||||
sudo echo '/opt/rocm/lib' > /etc/ld.so.conf.d/rocm.conf && \
|
||||
sudo ldconfig
|
||||
- name: Build
|
||||
run: |
|
||||
cargo xtask zip -r
|
||||
tar -xzf target/release/zluda.tar.gz target/release
|
||||
- name: Uplod
|
||||
uses: actions/upload-artifact@v4
|
||||
path: target/release/zluda
|
||||
|
Loading…
Add table
Reference in a new issue