-
Notifications
You must be signed in to change notification settings - Fork 50
40 lines (33 loc) · 1.09 KB
/
usage_test.yml
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
name: Usage Test
permissions: read-all
on:
workflow_dispatch:
merge_group:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
DEBIAN_FRONTEND: noninteractive
USER_LLVM_VERSION: 14
USER_CMAKE_VERSION: 3.25
jobs:
usage_test:
runs-on: ${{ github.repository_owner == 'intel' && 'intel-' || '' }}ubuntu-22.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install compiler
run: sudo apt update && sudo apt-get install -y clang-${{env.USER_LLVM_VERSION}}
- name: Install cmake
run: |
pip3 install --upgrade pip
pip3 install --force cmake==${{env.USER_CMAKE_VERSION}}
- name: Configure CMake
working-directory: ${{github.workspace}}/usage_test
env:
CC: "/usr/lib/llvm-${{env.USER_LLVM_VERSION}}/bin/clang"
CXX: "/usr/lib/llvm-${{env.USER_LLVM_VERSION}}/bin/clang++"
run: ~/.local/bin/cmake -B build
- name: Build
working-directory: ${{github.workspace}}/usage_test
run: ~/.local/bin/cmake --build build