Skip to content

Commit

Permalink
ci: Add some job dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-lunarg committed Aug 27, 2024
1 parent f77ae23 commit 76f3e68
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 40 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/formatting.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/vvl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,23 @@ permissions:
contents: read

jobs:
code-format:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: clang-format version
run: clang-format --version
- name: Execute Source Code Format Checking Script
run: python3 scripts/check_code_format.py --fetch-main --target-refspec=FETCH_HEAD

# Ensure we can build on an older Ubuntu distro with an older version of CMake.
linux_back_compat:
needs: check_vvl
runs-on: ubuntu-20.04
name: "Ubuntu Backcompat"
steps:
Expand All @@ -59,6 +74,7 @@ jobs:
- run: cmake --install build --prefix /tmp

linux:
needs: check_vvl
runs-on: ubuntu-22.04
name: "linux (${{matrix.sanitize}} sanitizer, ${{matrix.config}}, robinhood ${{matrix.robin_hood}} )"
strategy:
Expand Down Expand Up @@ -133,6 +149,7 @@ jobs:
retention-days: 3

androidOnLinux:
needs: check_vvl
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand All @@ -157,6 +174,7 @@ jobs:
VK_KHRONOS_PROFILES_PROFILE_FILE: ${{ github.workspace }}/tests/device_profiles/max_profile.json

windows:
needs: check_vvl
runs-on: windows-2022
strategy:
matrix:
Expand Down Expand Up @@ -221,6 +239,7 @@ jobs:
retention-days: 3

android:
needs: check_vvl
runs-on: ubuntu-22.04
strategy:
matrix:
Expand Down Expand Up @@ -293,6 +312,9 @@ jobs:
retention-days: 3

iOS:
# iOS is 10x expensive to run on GitHub machines, so only run if we know something else fast/simple passed as well
# androidOnLinux does a basic build and only takes a 2 or 3 minutes to normally run
needs: androidOnLinux
runs-on: macos-12
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -324,6 +346,7 @@ jobs:
- run: vtool -show-build /tmp/lib/VkLayer_khronos_validation.framework/VkLayer_khronos_validation

mingw:
needs: check_vvl
runs-on: windows-latest
defaults:
run:
Expand Down Expand Up @@ -351,6 +374,7 @@ jobs:
- run: cmake --install build --prefix /tmp

chromium:
needs: check_vvl
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -363,6 +387,7 @@ jobs:
- run: python scripts/gn/gn.py --args='${{ matrix.args }}'

check_vvl:
needs: code-format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 76f3e68

Please sign in to comment.