forked from KhronosGroup/glslang
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from kd-11/sdk_224
Sync with SDK ver 224
- Loading branch information
Showing
835 changed files
with
98,775 additions
and
49,462 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
# NOTE: This workflow was ported from Travis. | ||
# Travis was using Ubuntu 14.04. Ubuntu 14.04 is not supportted by GitHub workflows. Ubuntu 20.04 is recommended. | ||
# Travis was using Clang 3.6. The earliest version support by Ubuntu 20.04 is Clang 6.0. | ||
# Travis was caching the clang package. APT package caching is not natively supported by GitHub actions/cache. | ||
# Travis was using Mac OS X 10.13.6 / Xcode 9.4.1 / LLVM 9.1.0 | ||
|
||
# NOTE: The following documentation may be useful to maintainers of this workflow. | ||
# Github actions: https://docs.github.com/en/actions | ||
# Github github-script action: https://github.com/actions/github-script | ||
# GitHub REST API: https://docs.github.com/en/rest | ||
# Octokit front-end to the GitHub REST API: https://octokit.github.io/rest.js/v18 | ||
# Octokit endpoint methods: https://github.com/octokit/plugin-rest-endpoint-methods.js/tree/master/docs/repos | ||
|
||
# TODO: Use actions/upload-artifact and actions/download-artifact to simplify deployment. | ||
# TODO: Use composite actions to refactor redundant code. | ||
|
||
name: Continuous Deployment | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
linux: | ||
runs-on: ${{matrix.os.genus}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [{genus: ubuntu-20.04, family: linux}] | ||
compiler: [{cc: clang, cxx: clang++}, {cc: gcc, cxx: g++}] | ||
cmake_build_type: [Debug, Release] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.7' | ||
- name: Install Ubuntu Package Dependencies | ||
run: | | ||
sudo apt-get -qq update | ||
sudo apt-get install -y clang-6.0 | ||
- name: Install GoogleTest | ||
run: | | ||
# check out pre-breakage version of googletest; can be deleted when | ||
# issue 3128 is fixed | ||
# git clone --depth=1 https://github.com/google/googletest.git External/googletest | ||
mkdir -p External/googletest | ||
cd External/googletest | ||
git init | ||
git remote add origin https://github.com/google/googletest.git | ||
git fetch --depth 1 origin 0c400f67fcf305869c5fb113dd296eca266c9725 | ||
git reset --hard FETCH_HEAD | ||
cd ../.. | ||
- name: Update Glslang Sources | ||
run: | | ||
./update_glslang_sources.py | ||
- name: Build | ||
env: | ||
CC: ${{matrix.compiler.cc}} | ||
CXX: ${{matrix.compiler.cxx}} | ||
run: | | ||
mkdir build && cd build | ||
cmake -DCMAKE_BUILD_TYPE=${{matrix.cmake_build_type}} -DCMAKE_INSTALL_PREFIX=`pwd`/install .. | ||
make -j4 install | ||
- name: Test | ||
run: | | ||
cd build | ||
ctest --output-on-failure && | ||
cd ../Test && ./runtests | ||
- name: Zip | ||
if: ${{ matrix.compiler.cc == 'clang' }} | ||
env: | ||
ARCHIVE: glslang-master-${{matrix.os.family}}-${{matrix.cmake_build_type}}.zip | ||
run: | | ||
cd build/install | ||
zip ${ARCHIVE} \ | ||
bin/glslangValidator \ | ||
include/glslang/* \ | ||
include/glslang/**/* \ | ||
lib/libGenericCodeGen.a \ | ||
lib/libglslang.a \ | ||
lib/libglslang-default-resource-limits.a \ | ||
lib/libHLSL.a \ | ||
lib/libMachineIndependent.a \ | ||
lib/libOGLCompiler.a \ | ||
lib/libOSDependent.a \ | ||
lib/libSPIRV.a \ | ||
lib/libSPVRemapper.a \ | ||
lib/libSPIRV-Tools.a \ | ||
lib/libSPIRV-Tools-opt.a | ||
- name: Deploy | ||
if: ${{ matrix.compiler.cc == 'clang' }} | ||
env: | ||
ARCHIVE: glslang-master-${{matrix.os.family}}-${{matrix.cmake_build_type}}.zip | ||
uses: actions/github-script@v5 | ||
with: | ||
script: | | ||
const script = require('.github/workflows/deploy.js') | ||
await script({github, context, core}) | ||
macos: | ||
runs-on: ${{matrix.os.genus}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [{genus: macos-11, family: osx}] | ||
compiler: [{cc: clang, cxx: clang++}] | ||
cmake_build_type: [Debug, Release] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.7' | ||
- name: Install GoogleTest | ||
run: | | ||
# check out pre-breakage version of googletest; can be deleted when | ||
# issue 3128 is fixed | ||
# git clone --depth=1 https://github.com/google/googletest.git External/googletest | ||
mkdir -p External/googletest | ||
cd External/googletest | ||
git init | ||
git remote add origin https://github.com/google/googletest.git | ||
git fetch --depth 1 origin 0c400f67fcf305869c5fb113dd296eca266c9725 | ||
git reset --hard FETCH_HEAD | ||
cd ../.. | ||
- name: Update Glslang Sources | ||
run: | | ||
./update_glslang_sources.py | ||
- name: Build | ||
env: | ||
CC: ${{matrix.compiler.cc}} | ||
CXX: ${{matrix.compiler.cxx}} | ||
run: | | ||
mkdir build && cd build | ||
cmake -DCMAKE_BUILD_TYPE=${{matrix.cmake_build_type}} -DCMAKE_INSTALL_PREFIX=`pwd`/install .. | ||
make -j4 install | ||
- name: Test | ||
run: | | ||
cd build | ||
ctest --output-on-failure && | ||
cd ../Test && ./runtests | ||
- name: Zip | ||
env: | ||
ARCHIVE: glslang-master-${{matrix.os.family}}-${{matrix.cmake_build_type}}.zip | ||
run: | | ||
cd build/install | ||
zip ${ARCHIVE} \ | ||
bin/glslangValidator \ | ||
include/glslang/* \ | ||
include/glslang/**/* \ | ||
lib/libGenericCodeGen.a \ | ||
lib/libglslang.a \ | ||
lib/libglslang-default-resource-limits.a \ | ||
lib/libHLSL.a \ | ||
lib/libMachineIndependent.a \ | ||
lib/libOGLCompiler.a \ | ||
lib/libOSDependent.a \ | ||
lib/libSPIRV.a \ | ||
lib/libSPVRemapper.a \ | ||
lib/libSPIRV-Tools.a \ | ||
lib/libSPIRV-Tools-opt.a | ||
- name: Deploy | ||
env: | ||
ARCHIVE: glslang-master-${{matrix.os.family}}-${{matrix.cmake_build_type}}.zip | ||
uses: actions/github-script@v5 | ||
with: | ||
script: | | ||
const script = require('.github/workflows/deploy.js') | ||
await script({github, context, core}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
# NOTE: This workflow was ported from Travis. | ||
# Travis was using Ubuntu 14.04. Ubuntu 14.04 is not supportted by GitHub workflows. Ubuntu 20.04 is recommended. | ||
# Travis was using Clang 3.6. The earliest version support by Ubuntu 20.04 is Clang 6.0. | ||
# Travis was caching the clang package. APT package caching is not natively supported by GitHub actions/cache. | ||
# Travis was using Mac OS X 10.13.6 / Xcode 9.4.1 / LLVM 9.1.0 | ||
# | ||
name: Continuous Integration | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
linux: | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04] | ||
compiler: [{cc: clang, cxx: clang++}, {cc: gcc, cxx: g++}] | ||
cmake_build_type: [Debug, Release] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.7' | ||
- name: Install Ubuntu Package Dependencies | ||
run: | | ||
sudo apt-get -qq update | ||
sudo apt-get install -y clang-6.0 | ||
- name: Install GoogleTest | ||
run: | | ||
# check out pre-breakage version of googletest; can be deleted when | ||
# issue 3128 is fixed | ||
# git clone --depth=1 https://github.com/google/googletest.git External/googletest | ||
mkdir -p External/googletest | ||
cd External/googletest | ||
git init | ||
git remote add origin https://github.com/google/googletest.git | ||
git fetch --depth 1 origin 0c400f67fcf305869c5fb113dd296eca266c9725 | ||
git reset --hard FETCH_HEAD | ||
cd ../.. | ||
- name: Update Glslang Sources | ||
run: | | ||
./update_glslang_sources.py | ||
- name: Build | ||
env: | ||
CC: ${{matrix.compiler.cc}} | ||
CXX: ${{matrix.compiler.cxx}} | ||
run: | | ||
mkdir build && cd build | ||
cmake -DCMAKE_BUILD_TYPE=${{matrix.cmake_build_type}} -DCMAKE_INSTALL_PREFIX=`pwd`/install .. | ||
make -j4 install | ||
- name: Test | ||
run: | | ||
cd build | ||
ctest --output-on-failure && | ||
cd ../Test && ./runtests | ||
macos: | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-11] | ||
compiler: [{cc: clang, cxx: clang++}] | ||
cmake_build_type: [Debug, Release] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.7' | ||
- name: Install GoogleTest | ||
run: | | ||
# check out pre-breakage version of googletest; can be deleted when | ||
# issue 3128 is fixed | ||
# git clone --depth=1 https://github.com/google/googletest.git External/googletest | ||
mkdir -p External/googletest | ||
cd External/googletest | ||
git init | ||
git remote add origin https://github.com/google/googletest.git | ||
git fetch --depth 1 origin 0c400f67fcf305869c5fb113dd296eca266c9725 | ||
git reset --hard FETCH_HEAD | ||
cd ../.. | ||
- name: Update Glslang Sources | ||
run: | | ||
./update_glslang_sources.py | ||
- name: Build | ||
env: | ||
CC: ${{matrix.compiler.cc}} | ||
CXX: ${{matrix.compiler.cxx}} | ||
run: | | ||
mkdir build && cd build | ||
cmake -DCMAKE_BUILD_TYPE=${{matrix.cmake_build_type}} -DCMAKE_INSTALL_PREFIX=`pwd`/install .. | ||
make -j4 install | ||
- name: Test | ||
run: | | ||
cd build | ||
ctest --output-on-failure && | ||
cd ../Test && ./runtests | ||
android: | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04] | ||
compiler: [{cc: clang, cxx: clang++}] | ||
cmake_build_type: [Release] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.7' | ||
- name: Install Ubuntu Package Dependencies | ||
if: ${{matrix.os == 'ubuntu-20.04'}} | ||
run: | | ||
sudo apt-get -qq update | ||
sudo apt-get install -y clang-6.0 | ||
- name: Install Android NDK | ||
run: | | ||
export ANDROID_NDK=$HOME/android-ndk | ||
git init $ANDROID_NDK | ||
pushd $ANDROID_NDK | ||
git remote add dneto0 https://github.com/dneto0/android-ndk.git | ||
git fetch --depth=1 dneto0 r17b-strip | ||
git checkout FETCH_HEAD | ||
popd | ||
- name: Install GoogleTest | ||
run: | | ||
# check out pre-breakage version of googletest; can be deleted when | ||
# issue 3128 is fixed | ||
# git clone --depth=1 https://github.com/google/googletest.git External/googletest | ||
mkdir -p External/googletest | ||
cd External/googletest | ||
git init | ||
git remote add origin https://github.com/google/googletest.git | ||
git fetch --depth 1 origin 0c400f67fcf305869c5fb113dd296eca266c9725 | ||
git reset --hard FETCH_HEAD | ||
cd ../.. | ||
- name: Update Glslang Sources | ||
run: | | ||
./update_glslang_sources.py | ||
- name: Build | ||
env: | ||
CC: ${{matrix.compiler.cc}} | ||
CXX: ${{matrix.compiler.cxx}} | ||
run: | | ||
export ANDROID_NDK=$HOME/android-ndk | ||
export TOOLCHAIN_PATH=$ANDROID_NDK/build/cmake/android.toolchain.cmake | ||
echo $ANDROID_NDK | ||
echo $TOOLCHAIN_PATH | ||
mkdir build && cd build | ||
cmake -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_PATH} -DANDROID_NATIVE_API_LEVEL=android-14 -DCMAKE_BUILD_TYPE=${{matrix.cmake_build_type}} -DANDROID_ABI="armeabi-v7a with NEON" -DBUILD_TESTING=OFF .. | ||
make -j4 |
Oops, something went wrong.