mirror of
https://github.com/fumiama/gozel.git
synced 2026-06-22 03:20:29 +08:00
fix: ci
This commit is contained in:
21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
@@ -65,14 +65,19 @@ jobs:
|
|||||||
- name: Install Intel Level Zero (Linux)
|
- name: Install Intel Level Zero (Linux)
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | \
|
# The apt runtime package (libze1) does NOT ship libze_null.so, which is
|
||||||
sudo gpg --dearmor -o /usr/share/keyrings/intel-graphics.gpg
|
# required for ZE_ENABLE_NULL_DRIVER=1. Build from source instead so the
|
||||||
. /etc/os-release
|
# loader and the null driver are both present, matching the Windows approach.
|
||||||
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] \
|
RELEASE=$(curl -sf https://api.github.com/repos/oneapi-src/level-zero/releases/latest \
|
||||||
https://repositories.intel.com/gpu/ubuntu ${VERSION_CODENAME} unified" | \
|
| jq -r '.tag_name')
|
||||||
sudo tee /etc/apt/sources.list.d/intel-gpu.list
|
git clone https://github.com/oneapi-src/level-zero.git --depth=1 \
|
||||||
sudo apt-get update
|
--branch "$RELEASE" level-zero-src
|
||||||
sudo apt-get install -y intel-level-zero-gpu level-zero
|
cmake -S level-zero-src -B level-zero-build \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr/local \
|
||||||
|
-DBUILD_TESTING=OFF
|
||||||
|
cmake --build level-zero-build --parallel
|
||||||
|
sudo cmake --install level-zero-build
|
||||||
sudo ldconfig
|
sudo ldconfig
|
||||||
|
|
||||||
- name: Install Intel Level Zero (Windows)
|
- name: Install Intel Level Zero (Windows)
|
||||||
|
|||||||
Reference in New Issue
Block a user