File: build-quick.yml

package info (click to toggle)
level-zero 1.26.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,468 kB
  • sloc: cpp: 130,327; ansic: 16,197; python: 9,824; makefile: 4
file content (86 lines) | stat: -rw-r--r-- 2,570 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
on:
  push:
    branches: [ master,release_branch* ]
  pull_request:
    branches: [ master,release_branch* ]
  workflow_dispatch:

permissions: read-all

jobs:
  build-linux:
    if: github.repository_owner == 'oneapi-src'
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        container:
          - ubuntu:22.04
          - ubuntu:24.04
          - redhat/ubi9:latest
    container:
      image: ${{ matrix.container }}
    steps:
      - name: Install dependencies
        run: |
          if [ -f /etc/redhat-release ]; then
            # RHEL/UBI-based system
            yum install -y gcc gcc-c++ cmake make git
          else
            # Ubuntu-based system
            apt-get update
            apt-get install -y build-essential cmake git
          fi
      - uses: actions/checkout@v3
      - name: Build Loader on ${{ matrix.container }}
        run: |
          mkdir build
          cd build
          cmake \
            -D CMAKE_BUILD_TYPE=Release \
            -D BUILD_L0_LOADER_TESTS=1 \
            -D INSTALL_NULL_DRIVER=1 \
            ..
          make -j$(nproc)
      - env:
          ZEL_LIBRARY_PATH: '${{ github.workspace }}/build/lib'
        working-directory: build
        run: ctest -V
      - name: Install loader and NULL driver
        working-directory: build
        run: make install
      - name: Update library cache
        run: ldconfig
      - name: Test installed loader with zello_world and NULL driver
        working-directory: build
        run: |
          
          # Set up environment for NULL driver
          export ZE_ENABLE_NULL_DRIVER=1
          export ZE_ENABLE_LOADER_DEBUG_TRACE=1
          
          # Run zello_world with NULL driver
          ./bin/zello_world
          
          echo "✓ zello_world ran successfully with installed loader and NULL driver"
      - name: Uninstall loader
        working-directory: build
        run: make uninstall || xargs rm -v < install_manifest.txt

  build-windows:
    if: github.repository_owner == 'oneapi-src'
    runs-on: [windows-latest]
    steps:
      - uses: actions/checkout@v3
      - name: Build Loader on Latest Windows
        run: |
          mkdir build
          cd build
          cmake -D BUILD_L0_LOADER_TESTS=1 ..
          cmake --build . --config Release
      - env:
          ZEL_LIBRARY_PATH: '${{ github.workspace }}/build/bin/Release'
        working-directory: build
        run: ctest -C Release -V
      - working-directory: build
        run: cmake --build . --config Release --target install