Skip to content

Commit b20973a

Browse files
committed
ci: Reduce CI to unblock Github Action minutes
1 parent 96887d8 commit b20973a

File tree

2 files changed

+59
-45
lines changed

2 files changed

+59
-45
lines changed

.github/workflows/build.yml

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
name: "Build ${{ matrix.platform }} in ${{ matrix.build_type }}"
1616
strategy:
1717
matrix:
18-
platform: [windows, ubuntu, macos]
18+
platform: [windows, ubuntu]
1919
build_type: [Debug, Release]
2020
env:
2121
PARALLEL: -j 2
@@ -55,6 +55,62 @@ jobs:
5555
cmake -B"build/${{ matrix.platform }}" -DVKB_BUILD_TESTS=ON -DVKB_BUILD_SAMPLES=ON
5656
cmake --build "build/${{ matrix.platform }}" --target vulkan_samples --config ${{ matrix.build_type }} ${{ env.PARALLEL }}
5757
58+
build_v2:
59+
name: "Build ${{ matrix.platform }} in ${{ matrix.build_type }}"
60+
strategy:
61+
matrix:
62+
platform: [windows, ubuntu]
63+
build_type: [Release]
64+
env:
65+
PARALLEL: -j 2
66+
runs-on: "${{ matrix.platform }}-latest"
67+
steps:
68+
- uses: actions/checkout@v4
69+
with:
70+
submodules: "recursive"
71+
72+
- if: ${{ matrix.platform == 'ubuntu' }}
73+
name: Install RandR headers
74+
run: |
75+
sudo apt-get update
76+
sudo apt install xorg-dev libglu1-mesa-dev
77+
78+
- name: Configure
79+
run: cmake -B"build/${{ matrix.platform }}" -DVKB_BUILD_TESTS=ON
80+
81+
- name: "Build Components ${{ matrix.platform }} in ${{ matrix.build_type }}"
82+
run: cmake --build "build/${{ matrix.platform }}" --target vkb__components --config ${{ matrix.build_type }} ${{ env.PARALLEL }}
83+
84+
- name: "Build Tests ${{ matrix.platform }} in ${{ matrix.build_type }}"
85+
run: cmake --build "build/${{ matrix.platform }}" --target vkb__tests --config ${{ matrix.build_type }} ${{ env.PARALLEL }}
86+
87+
- name: "Run Tests ${{ matrix.platform }} in ${{ matrix.build_type }}"
88+
run: ctest -C ${{ matrix.build_type }} --test-dir "build/${{ matrix.platform }}" --output-on-failure
89+
90+
build_macos:
91+
needs: build
92+
name: "Build ${{ matrix.platform }} in ${{ matrix.build_type }}"
93+
strategy:
94+
# masoc is 10x expensive to run on GitHub machines, so only build simplest variations
95+
matrix:
96+
platform: [macos]
97+
build_type: [Release]
98+
env:
99+
PARALLEL: -j 2
100+
runs-on: "${{ matrix.platform }}-latest"
101+
steps:
102+
- uses: actions/checkout@v4
103+
with:
104+
submodules: "recursive"
105+
- name: ccache
106+
uses: hendrikmuhs/[email protected]
107+
with:
108+
key: ${{ github.job }}-${{ matrix.os }}
109+
- name: Configure and build
110+
run: |
111+
cmake -B"build/${{ matrix.platform }}" -DVKB_BUILD_TESTS=ON -DVKB_BUILD_SAMPLES=ON
112+
cmake --build "build/${{ matrix.platform }}" --target vulkan_samples --config ${{ matrix.build_type }} ${{ env.PARALLEL }}
113+
58114
build_d2d:
59115
name: "Build Ubuntu with Direct To Display"
60116
env:
@@ -108,6 +164,8 @@ jobs:
108164
run: NDK_CCACHE=1 NDK_CCACHE_BIN=ccache ./gradlew app:assemble${{ matrix.build_type }} --info
109165

110166
build_ios:
167+
# iOS is 10x expensive to run on GitHub machines, so only run if we know something else fast/simple passed as well
168+
needs: build
111169
name: "Build ios in ${{ matrix.build_type }}"
112170
runs-on: macos-latest
113171
strategy:

.github/workflows/v2.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)