forked from shader-slang/slang-glslang
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.36 KB
/
linux.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
47
48
name: Linux Build CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Linux Build CI
runs-on: ubuntu-20.04
strategy:
matrix:
# Might want debug once release works
configuration: ['release'] # , 'debug']
platform: ['x64', 'aarch64']
steps:
- uses: actions/[email protected]
with:
submodules: 'true'
fetch-depth: '0'
- name: premake
run: |
PREMAKE=external/slang-binaries/premake/premake-5.0.0-alpha16/bin/linux-64/premake5
chmod u+x ${PREMAKE}
${PREMAKE} gmake --deps=true --no-progress=true
- name: Build
run: |
if [[ "${{matrix.platform}}" == "aarch64" ]]; then
source .github/workflows/setup-crosscompile-arm.sh
CC=aarch64-linux-gnu-gcc-9 CXX=aarch64-linux-gnu-g++-9 make config=${{matrix.configuration}}_${{matrix.platform}} -j`nproc`
else
make config=${{matrix.configuration}}_${{matrix.platform}} -j`nproc`
fi
# https://github.com/actions/upload-artifact
#- uses: actions/upload-artifact@v2
# with:
# name: slang-glslang-linux-${{matrix.platform}}-${{matrix.configuration}}
# path: |
# bin/**/*.so
# README.md