-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
108 changed files
with
1,314 additions
and
584 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 |
---|---|---|
|
@@ -25,15 +25,17 @@ on: | |
- 'CMake/**' | ||
- 'CMakeLists.txt' | ||
- 'CMakePresets.json' | ||
schedule: | ||
- cron: '20 23 * * 3' | ||
|
||
# Do not schedule workflow with "cron", so that it could run in GitHub forks (scheduled workflows are disabled in forks) | ||
|
||
env: | ||
product_ver_major: 0 | ||
product_ver_minor: 7 | ||
product_ver_patch: 2 | ||
product_ver_patch: 3 | ||
product_ver_build: ${{ github.run_number }} | ||
tracy_release_version: "0.9.1" | ||
vulkan_sdk_version: "1.3.250.1" | ||
is_origin_repository: ${{ github.repository == 'MethanePowered/MethaneKit' }} | ||
# TSC Invariant check is disabled to allow running Catch test executables only for tests list query by CTest | ||
TRACY_NO_INVARIANT_CHECK: 1 | ||
|
||
|
@@ -53,6 +55,7 @@ jobs: | |
named_logo: Windows | ||
run_tests: true | ||
add_tracy_app: false | ||
install_vulkan_sdk: false | ||
|
||
- os: windows-latest | ||
os_name: Windows | ||
|
@@ -62,6 +65,7 @@ jobs: | |
named_logo: Windows | ||
run_tests: true | ||
add_tracy_app: false | ||
install_vulkan_sdk: false | ||
|
||
- os: windows-latest | ||
os_name: Windows | ||
|
@@ -71,6 +75,7 @@ jobs: | |
named_logo: Windows | ||
run_tests: false | ||
add_tracy_app: true | ||
install_vulkan_sdk: false | ||
|
||
- os: windows-latest | ||
os_name: Windows | ||
|
@@ -80,6 +85,7 @@ jobs: | |
named_logo: Windows | ||
run_tests: false | ||
add_tracy_app: true | ||
install_vulkan_sdk: false | ||
|
||
- os: windows-latest | ||
os_name: Windows | ||
|
@@ -89,6 +95,7 @@ jobs: | |
named_logo: Windows | ||
run_tests: true | ||
add_tracy_app: false | ||
install_vulkan_sdk: false | ||
|
||
- os: windows-latest | ||
os_name: Windows | ||
|
@@ -98,6 +105,7 @@ jobs: | |
named_logo: Windows | ||
run_tests: true | ||
add_tracy_app: false | ||
install_vulkan_sdk: false | ||
|
||
- os: windows-latest | ||
os_name: Windows | ||
|
@@ -107,6 +115,7 @@ jobs: | |
named_logo: Windows | ||
run_tests: false | ||
add_tracy_app: true | ||
install_vulkan_sdk: false | ||
|
||
- os: windows-latest | ||
os_name: Windows | ||
|
@@ -116,6 +125,7 @@ jobs: | |
named_logo: Windows | ||
run_tests: false | ||
add_tracy_app: true | ||
install_vulkan_sdk: false | ||
|
||
- os: ubuntu-latest | ||
os_name: Ubuntu | ||
|
@@ -125,6 +135,7 @@ jobs: | |
named_logo: Linux | ||
run_tests: true | ||
add_tracy_app: false | ||
install_vulkan_sdk: false | ||
|
||
- os: ubuntu-latest | ||
os_name: Ubuntu | ||
|
@@ -134,6 +145,17 @@ jobs: | |
named_logo: Linux | ||
run_tests: false | ||
add_tracy_app: true | ||
install_vulkan_sdk: false | ||
|
||
- os: macos-latest | ||
os_name: MacOS | ||
name: "MacOS_VK_Release" | ||
config_preset: "Xcode-Mac-VK-Default" | ||
build_preset: "Xcode-Mac-VK-Release" | ||
named_logo: Apple | ||
run_tests: true | ||
add_tracy_app: false | ||
install_vulkan_sdk: true | ||
|
||
- os: macos-latest | ||
os_name: MacOS | ||
|
@@ -143,6 +165,7 @@ jobs: | |
named_logo: Apple | ||
run_tests: true | ||
add_tracy_app: false | ||
install_vulkan_sdk: false | ||
|
||
- os: macos-latest | ||
os_name: MacOS | ||
|
@@ -152,6 +175,7 @@ jobs: | |
named_logo: Apple | ||
run_tests: false | ||
add_tracy_app: true | ||
install_vulkan_sdk: false | ||
|
||
- os: macos-latest | ||
os_name: MacOS | ||
|
@@ -161,6 +185,7 @@ jobs: | |
named_logo: Apple | ||
run_tests: false | ||
add_tracy_app: false | ||
install_vulkan_sdk: false | ||
|
||
- os: macos-latest | ||
os_name: MacOS | ||
|
@@ -170,6 +195,7 @@ jobs: | |
named_logo: Apple | ||
run_tests: false | ||
add_tracy_app: false | ||
install_vulkan_sdk: false | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
|
@@ -187,10 +213,45 @@ jobs: | |
uses: actions/checkout@v3 | ||
|
||
- name: Install Testspace | ||
if: ${{ env.is_origin_repository }} | ||
uses: testspace-com/setup-testspace@v1 | ||
with: | ||
domain: ${{ github.repository_owner }} | ||
|
||
- name: Install Vulkan SDK ${{ env.vulkan_sdk_version }} | ||
if: ${{ matrix.install_vulkan_sdk }} | ||
run: | | ||
runner_os=$(uname -s) | ||
case $runner_os in | ||
macOS|Darwin) sdk_os=mac ; sdk_os_subdir=macOS ;; | ||
Linux) sdk_os=linux ; sdk_os_subdir=linux ;; | ||
Windows|MINGW*) sdk_os=windows ; sdk_os_subdir=windows ;; | ||
*) echo "Unknown runner_os: $runner_os" ; exit 7 ; ;; | ||
esac | ||
sdk_ver="${{ env.vulkan_sdk_version }}" | ||
sdk_dir="${{ runner.tool_cache }}/VulkanSDK" | ||
sdk_ver_dir="$sdk_dir/$sdk_ver/$sdk_os_subdir" | ||
if [ -d "$sdk_ver_dir" ]; then | ||
echo "Vulkan SDK version directory already exists: $sdk_ver_dir" | ||
else | ||
test -d $sdk_dir || mkdir -pv $sdk_dir | ||
vulkan_sdk_url=https://github.com/MethanePowered/VulkanHeaders/releases/download/sdk-$sdk_ver/vulkan_sdk_$sdk_os.7z | ||
echo "Downloading Vulkan SDK archive $vulkan_sdk_url ..." | ||
curl -sSLo vulkan_sdk.7z $vulkan_sdk_url | ||
echo "Unpacking Vulkan SDK archive to $sdk_dir ..." | ||
7z x vulkan_sdk.7z -o$sdk_dir | ||
if [ ! -d $sdk_ver_dir ]; then | ||
echo "Vulkan SDK subdirectory not found: $sdk_ver_dir" | ||
exit 7 | ||
fi | ||
fi | ||
echo "Setting VULKAN_SDK* environment variables..." | ||
echo "VULKAN_SDK=$sdk_ver_dir" >> $GITHUB_ENV | ||
echo "VULKAN_SDK_VERSION=$sdk_ver" >> $GITHUB_ENV | ||
echo "VULKAN_SDK_PLATFORM=$sdk_os" >> $GITHUB_ENV | ||
echo "PATH=$PATH:$sdk_ver_dir/bin" >> $GITHUB_ENV | ||
echo "DYLD_LIBRARY_PATH=$sdk_ver_dir/lib:${DYLD_LIBRARY_PATH:-}" >> $GITHUB_ENV | ||
- name: Initialize Externals Cache | ||
uses: actions/cache@v3 | ||
with: | ||
|
@@ -255,7 +316,7 @@ jobs: | |
path: ${{ env.INSTALL_DIR }}/Tests/*_result.xml | ||
|
||
- name: Upload Test Results and Build Log to Testspace server | ||
if: ${{ matrix.run_tests && (success() || failure()) }} | ||
if: ${{ env.is_origin_repository && matrix.run_tests && (success() || failure()) }} | ||
run: testspace "[ ${{ matrix.name }} ]${{ env.INSTALL_DIR }}/Tests/*_result.xml" "[ ${{ matrix.name }} ]${{ env.BUILD_LOG_FILE }}" | ||
|
||
- name: Add README and BUILD files | ||
|
@@ -300,7 +361,7 @@ jobs: | |
|
||
- name: Update Badge Parameters | ||
id: badge-params | ||
if: ${{ github.event_name == 'push' && always() }} | ||
if: ${{ env.is_origin_repository && github.event_name == 'push' && always() }} | ||
shell: bash | ||
run: | | ||
case "${{ job.status }}" in | ||
|
@@ -323,7 +384,7 @@ jobs: | |
esac | ||
- name: Update Badge JSON | ||
if: ${{ github.event_name == 'push' && always() }} | ||
if: ${{ env.is_origin_repository && github.event_name == 'push' && always() }} | ||
uses: schneegans/[email protected] # https://github.com/marketplace/actions/dynamic-badges | ||
with: | ||
auth: ${{ secrets.GIST_TOKEN }} | ||
|
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
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
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
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
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
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
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
Oops, something went wrong.
fcc7aa2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Win64_VK_Release Test Results
fcc7aa2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MacOS_VK_Release Test Results
fcc7aa2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MacOS_MTL_Release Test Results
fcc7aa2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Win32_VK_Release Test Results
fcc7aa2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Win64_DX_Release Test Results
fcc7aa2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ubuntu_VK_Release Test Results
fcc7aa2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ubuntu_VK_SonarScan Tests Code Coverage
fcc7aa2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MacOS_MTL_SonarScan Tests Code Coverage
fcc7aa2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Win64_DX_SonarScan Tests Code Coverage
fcc7aa2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Win32_DX_Release Test Results