forked from shader-slang/slang
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.22 KB
/
build-llvm-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
41
42
43
44
45
46
name: Build slang-llvm
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
configuration: ['release']
platform: ['x64']
steps:
- name: install Ninja
run: sudo apt-get install -y ninja-build
- uses: actions/checkout@v3
with:
submodules: 'true'
fetch-depth: '0'
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
- name: configure
run: |
mkdir -p build
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake -S . -B build \
-G "Ninja Multi-Config" \
-DSLANG_USE_BINARY_SLANG_LLVM=0 -DSLANG_USE_SYSTEM_LLVM=0 \
env:
CC: gcc-10
CXX: g++-10
CMAKE_C_COMPILER_LAUNCHER: ccache
CMAKE_CXX_COMPILER_LAUNCHER: ccache
- name: build
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cmake --build build -j $(nproc) --target slang-llvm --config Release
- uses: actions/upload-artifact@v3
with:
name: slang-llvm-${{matrix.configuration}}-${{matrix.platform}}
path: |
build/Release/lib/libslang-llvm.so