mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-04-28 21:47:57 +03:00
Add building only CI (#25)
Testing isn't working yet because some tests require live Intel GPU and live NVIDIA GPU
This commit is contained in:
parent
63af70a01f
commit
ae950163cd
1 changed files with 54 additions and 0 deletions
54
.github/workflows/rust.yml
vendored
Normal file
54
.github/workflows/rust.yml
vendored
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
name: Rust
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/registry
|
||||||
|
~/.cargo/git
|
||||||
|
target
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
- name: Install intel compute runtime
|
||||||
|
run: |
|
||||||
|
mkdir neo
|
||||||
|
cd neo
|
||||||
|
wget https://github.com/intel/compute-runtime/releases/download/20.51.18762/intel-gmmlib_20.3.2_amd64.deb
|
||||||
|
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.5884/intel-igc-core_1.0.5884_amd64.deb
|
||||||
|
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.5884/intel-igc-opencl_1.0.5884_amd64.deb
|
||||||
|
wget https://github.com/intel/compute-runtime/releases/download/20.51.18762/intel-opencl_20.51.18762_amd64.deb
|
||||||
|
wget https://github.com/intel/compute-runtime/releases/download/20.51.18762/intel-ocloc_20.51.18762_amd64.deb
|
||||||
|
wget https://github.com/intel/compute-runtime/releases/download/20.51.18762/intel-level-zero-gpu_1.0.18762_amd64.deb
|
||||||
|
|
||||||
|
wget https://github.com/intel/compute-runtime/releases/download/20.51.18762/ww51.sum
|
||||||
|
sha256sum -c ww51.sum
|
||||||
|
|
||||||
|
wget https://github.com/oneapi-src/level-zero/releases/download/v1.0.22/level-zero-devel_1.0.22+u18.04_amd64.deb
|
||||||
|
wget https://github.com/oneapi-src/level-zero/releases/download/v1.0.22/level-zero_1.0.22+u18.04_amd64.deb
|
||||||
|
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.5884/intel-igc-opencl-devel_1.0.5884_amd64.deb
|
||||||
|
|
||||||
|
sudo dpkg -i *.deb
|
||||||
|
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install ocl-icd-opencl-dev
|
||||||
|
- name: Build
|
||||||
|
run: cargo build --verbose
|
||||||
|
# TODO(take-cheeze): Support testing
|
||||||
|
# - name: Run tests
|
||||||
|
# run: cargo test --verbose
|
Loading…
Add table
Add a link
Reference in a new issue