File: ci.yml

package info (click to toggle)
vulkan-loader 1.4.341.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 46,144 kB
  • sloc: cpp: 355,133; ansic: 47,211; xml: 35,110; python: 6,125; asm: 3,534; makefile: 71; sh: 53
file content (128 lines) | stat: -rw-r--r-- 4,191 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# Copyright 2022-2023 LunarG, Inc.
#
# SPDX-License-Identifier: Apache-2.0

name: ci

on:
  push:
  pull_request:

env:
  CMAKE_GENERATOR: Ninja

permissions:
    contents: read

jobs:
  cmake-unix:
    runs-on: ${{ matrix.os }}
    if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
    strategy:
      matrix:
        os: [ ubuntu-latest, macos-latest ]
        cmake-version: [ '3.22.1', 'latest']
    steps:
      - uses: actions/checkout@v6
      - uses: lukka/get-cmake@latest
        with:
          cmakeVersion: ${{ matrix.cmake-version }}
      - uses: ilammy/msvc-dev-cmd@v1
      - run: cmake -S . -B build -D VULKAN_HEADERS_ENABLE_TESTS=ON -D VULKAN_HEADERS_ENABLE_INSTALL=ON
      - run: cmake --build ./build
      - run: cmake --install build/ --prefix build/install
      - run: ctest --output-on-failure
        working-directory: build

  cmake-windows:
    runs-on: windows-latest
    if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
    strategy:
      matrix:
        cmake-version: [ '3.22.1', 'latest']
    steps:
      - uses: actions/checkout@v6
      - uses: lukka/get-cmake@latest
        with:
          cmakeVersion: ${{ matrix.cmake-version }}
      - uses: ilammy/msvc-dev-cmd@v1
      - run: cmake -S . -B build -D VULKAN_HEADERS_ENABLE_TESTS=ON -D VULKAN_HEADERS_ENABLE_INSTALL=ON
      - run: cmake --build ./build
      - run: cmake --install build/ --prefix build/install
      - run: ctest --output-on-failure
        working-directory: build

  windows_clang:
    runs-on: windows-2022
    if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
    strategy:
      matrix:
          compiler: [ clang, clang-cl ]
    steps:
        - uses: actions/checkout@v6
        - uses: ilammy/msvc-dev-cmd@v1
        - run: |
            cmake -S . -B build `
            -D CMAKE_C_COMPILER=${{matrix.compiler}} `
            -D CMAKE_CXX_COMPILER=${{matrix.compiler}} `
            -D CMAKE_BUILD_TYPE=Release `
            -D VULKAN_HEADERS_ENABLE_TESTS=ON `
            -D VULKAN_HEADERS_ENABLE_INSTALL=ON `
        - run: cmake --build ./build
        - run: cmake --install build/ --prefix build/install
        - run: ctest --output-on-failure
          working-directory: build

  cmake-unix-modules:
    runs-on: ${{ matrix.os }}
    if: false
    strategy:
      matrix:
        os: [ ubuntu-latest ]
        cmake-version: [ 'latest' ]
        compiler: [ clang++-18 ]
    steps:
      - uses: actions/checkout@v6
      - uses: lukka/get-cmake@latest
        with:
          cmakeVersion: ${{ matrix.cmake-version }}
      - uses: ilammy/msvc-dev-cmd@v1
      - run: |
          cmake -S . -B build \
          -D VULKAN_HEADERS_ENABLE_TESTS=ON \
          -D VULKAN_HEADERS_ENABLE_INSTALL=ON \
          -D CMAKE_CXX_COMPILER=${{ matrix.compiler }} \
      - run: cmake --build ./build
      - run: cmake --install build/ --prefix build/install
      - run: CXX=${{ matrix.compiler }} ctest --output-on-failure
        working-directory: build

  cmake-windows-modules:
    runs-on: ${{ matrix.os }}
    if: false
    strategy:
      matrix:
        os: [ windows-latest ]
        cmake-version: [ 'latest' ]
    steps:
      - uses: actions/checkout@v6
      - uses: lukka/get-cmake@latest
        with:
          cmakeVersion: ${{ matrix.cmake-version }}
      - uses: ilammy/msvc-dev-cmd@v1
      - run: |
          cmake -S . -B build `
          -D VULKAN_HEADERS_ENABLE_TESTS=ON `
          -D VULKAN_HEADERS_ENABLE_INSTALL=ON `
      - run: cmake --build ./build
      - run: cmake --install build/ --prefix build/install
      - run: ctest --output-on-failure
        working-directory: build

  reuse:
    runs-on: ubuntu-latest
    if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
    steps:
    - uses: actions/checkout@v6
    - name: REUSE Compliance Check
      uses: fsfe/reuse-action@v6