From 13aaa9a42576611f77ba01d77d31ed2e1a4e877d Mon Sep 17 00:00:00 2001 From: Tobias Frisch <tfrisch@uni-koblenz.de> Date: Mon, 20 Mar 2023 00:14:49 +0100 Subject: [PATCH] Improve speed of github action builds Signed-off-by: Tobias Frisch <tfrisch@uni-koblenz.de> --- .github/workflows/linux.yml | 2 +- .github/workflows/macos.yml | 26 ++++++++++++++++++++++++++ .github/workflows/windows.yml | 4 ++-- 3 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/macos.yml diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 18562323..159e1de0 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -29,5 +29,5 @@ jobs: - name: Build framework run: | - cmake -DCMAKE_BUILD_TYPE=Release -S . -B build + cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -S . -B build cmake --build build diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 00000000..f1d01345 --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,26 @@ +name: macOS Build + +on: + push: + branches: [ develop ] + +jobs: + build: + runs-on: macos-latest + steps: + - name: Checkout the current branch + uses: actions/checkout@v3 + with: + submodules: true + + - name: Prepare Vulkan SDK + uses: humbletim/setup-vulkan-sdk@v1.2.0 + with: + vulkan-query-version: latest + vulkan-components: Vulkan-Headers, Vulkan-Loader + vulkan-use-cache: true + + - name: Build framework + run: | + cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -S . -B build + cmake --build build diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 104844c3..4b3400be 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -22,5 +22,5 @@ jobs: - name: Build framework run: | - cmake -S . -B build - cmake --build build --config Release + cmake -G Ninja -S . -B build + cmake --build build --config Debug -- GitLab