-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,12 +24,12 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- main | ||
pull_request: | ||
branches: | ||
- sc_main | ||
push: | ||
branches-ignore: | ||
- main | ||
pull_request: | ||
branches: | ||
- sc_main | ||
|
||
permissions: read-all | ||
|
||
|
@@ -50,8 +50,8 @@ jobs: | |
cxx: g++ | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.7' | ||
- uses: lukka/get-cmake@latest | ||
|
@@ -77,21 +77,19 @@ jobs: | |
working-directory: ./build | ||
run: ctest --output-on-failure | ||
|
||
- name: Verify generated source files | ||
run: python scripts/generate_source.py --verify external/${{matrix.config}}/Vulkan-Headers/registry --api vulkansc | ||
|
||
- name: Verify code formatting with clang-format | ||
run: ./scripts/check_code_format.sh | ||
|
||
- name: Verify commit message formatting | ||
run: ./scripts/check_commit_message_format.sh | ||
codegen: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: scripts/update_deps.py --dir ext --no-build | ||
- run: scripts/generate_source.py --verify ext/Vulkan-Headers/registry/ --api vulkansc | ||
|
||
linux-no-asm: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.7' | ||
- uses: lukka/get-cmake@latest | ||
|
@@ -130,8 +128,8 @@ jobs: | |
cxx: g++ | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.7' | ||
- uses: lukka/get-cmake@latest | ||
|
@@ -169,8 +167,8 @@ jobs: | |
linux-32-no-asm: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.7' | ||
- uses: lukka/get-cmake@latest | ||
|
@@ -210,8 +208,8 @@ jobs: | |
config: [ Debug, Release ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.7' | ||
|
||
|
@@ -235,8 +233,8 @@ jobs: | |
arch: [ Win32, x64 ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.7' | ||
|
||
|
@@ -267,8 +265,8 @@ jobs: | |
config: debug | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.7' | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
|
@@ -293,8 +291,8 @@ jobs: | |
config: [ Release ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.7' | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
|
@@ -320,7 +318,7 @@ jobs: | |
strategy: | ||
matrix: | ||
config: [ Debug, Release ] | ||
os: [ macos-11, macos-latest ] | ||
os: [ macos-11, macos-12 ] | ||
static_build: [ BUILD_STATIC_LOADER=ON, BUILD_STATIC_LOADER=OFF ] | ||
exclude: | ||
- os: macos-latest | ||
|
@@ -330,54 +328,24 @@ jobs: | |
static_build: BUILD_STATIC_LOADER=ON | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.7' | ||
- uses: lukka/get-cmake@latest | ||
- name: Generate build files | ||
run: cmake -S. -B build -D CMAKE_BUILD_TYPE=${{matrix.config}} -D ${{matrix.static_build}} -D BUILD_TESTS=ON -D UPDATE_DEPS=ON -D ENABLE_WERROR=ON -D LOADER_ENABLE_ADDRESS_SANITIZER=ON -G "Ninja" -D VULKANSC=ON | ||
env: | ||
# Specify the minimum version of macOS on which the target binaries are to be deployed. | ||
# https://cmake.org/cmake/help/latest/envvar/MACOSX_DEPLOYMENT_TARGET.html | ||
MACOSX_DEPLOYMENT_TARGET: 10.12 | ||
LDFLAGS: -Wl,-fatal_warnings | ||
|
||
- name: Build the loader | ||
run: cmake --build build | ||
- run: cmake --build build | ||
|
||
- name: Install the loader | ||
run: cmake --install build --prefix build/install | ||
- run: cmake --install build --prefix build/install | ||
|
||
- name: Run regression tests | ||
working-directory: ./build | ||
run: ctest --output-on-failure | ||
|
||
mac-no-asm: | ||
runs-on: macos-latest | ||
|
||
strategy: | ||
matrix: | ||
static_build: [ BUILD_STATIC_LOADER=ON, BUILD_STATIC_LOADER=OFF ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.7' | ||
- uses: lukka/get-cmake@latest | ||
- name: Generate build files | ||
run: cmake -S. -B build -D CMAKE_BUILD_TYPE=Release -D ${{matrix.static_build}} -D BUILD_TESTS=ON -D UPDATE_DEPS=ON -D ENABLE_WERROR=ON -D USE_GAS=OFF -G "Ninja" -D VULKANSC=ON | ||
env: | ||
# Specify the minimum version of macOS on which the target binaries are to be deployed. | ||
# https://cmake.org/cmake/help/latest/envvar/MACOSX_DEPLOYMENT_TARGET.html | ||
MACOSX_DEPLOYMENT_TARGET: 10.12 | ||
|
||
- name: Build the loader | ||
run: cmake --build build | ||
|
||
- name: Run regression tests | ||
working-directory: ./build | ||
run: ctest --output-on-failure -E UnknownFunction | ||
|
||
|
||
mingw: | ||
|
@@ -386,7 +354,7 @@ jobs: | |
run: | ||
shell: bash | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Setup ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
|
@@ -404,7 +372,7 @@ jobs: | |
- name: UASM Check | ||
run: uasm -? | ||
- name: Configure | ||
run: cmake -S. -B build -D UPDATE_DEPS=ON -D CMAKE_BUILD_TYPE=Release | ||
run: cmake -S. -B build -D UPDATE_DEPS=ON -D CMAKE_BUILD_TYPE=Release -D VULKANSC=ON | ||
env: | ||
LDFLAGS: -fuse-ld=lld # MINGW linking is very slow. Use llvm linker instead. | ||
CMAKE_C_COMPILER_LAUNCHER: ccache | ||
|
@@ -423,7 +391,7 @@ jobs: | |
run: | ||
shell: bash | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Setup ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
|
@@ -436,7 +404,7 @@ jobs: | |
run: gcc --version # If this fails MINGW is not setup correctly | ||
- name: Configure | ||
# Make sure this doesn't fail even without -D USE_MASM=OFF and without uasm | ||
run: cmake -S. -B build -D UPDATE_DEPS=ON -D CMAKE_BUILD_TYPE=Release | ||
run: cmake -S. -B build -D UPDATE_DEPS=ON -D CMAKE_BUILD_TYPE=Release -D VULKANSC=ON | ||
env: | ||
LDFLAGS: -fuse-ld=lld # MINGW linking is very slow. Use llvm linker instead. | ||
CMAKE_C_COMPILER_LAUNCHER: ccache | ||
|
@@ -455,7 +423,7 @@ jobs: | |
run: | ||
shell: bash | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Setup ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
|
@@ -467,7 +435,7 @@ jobs: | |
- name: GCC Version | ||
run: gcc --version # If this fails MINGW is not setup correctly | ||
- name: Configure | ||
run: cmake -S. -B build -D UPDATE_DEPS=ON -D CMAKE_BUILD_TYPE=Release -D ENABLE_WERROR=ON -D USE_MASM=OFF | ||
run: cmake -S. -B build -D UPDATE_DEPS=ON -D CMAKE_BUILD_TYPE=Release -D ENABLE_WERROR=ON -D USE_MASM=OFF -D VULKANSC=ON | ||
env: | ||
LDFLAGS: -fuse-ld=lld # MINGW linking is very slow. Use llvm linker instead. | ||
CMAKE_C_COMPILER_LAUNCHER: ccache | ||
|