-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (51 loc) · 1.95 KB
/
macOS.yml
File metadata and controls
63 lines (51 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: macOS
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
env:
VK_VERSION: "1.2.135"
INSTALL_LOCATION: "$GITHUB_WORKSPACE/../vulkan_sdk"
steps:
- uses: actions/checkout@v2
- name: Cache Vulkan
id: cache-vulkan-sdk
uses: actions/cache@v1
with:
path: ${{ env.INSTALL_LOCATION }}
key: vulkan-sdk-${{ env.VK_VERSION }}
# Set up the Vulkan SDK.
# Unfortunately, LunarG has stopped bundling the SDK in zip files and instead requires that VK be manually installed.
# This approach isn't entirely doable on the MacOS CICD, since the install requires manual steps.
# With this is mind, this test is capped to Vulkan 1.2.135.0, and will not be able to test newer versions until this is
# a better olutaion can be found.
- name: Setup Vulkan
if: steps.cache-vulkan-sdk.outputs.cache-hit != 'true'
run: |
curl -LS -o ../vulkansdk.tar.gz \
https://sdk.lunarg.com/sdk/download/1.2.135.0/mac/vulkansdk-macos-1.2.135.0.tar.gz
mkdir -p "${{ env.INSTALL_LOCATION }}"
tar xfz ../vulkansdk.tar.gz -C "${{ env.INSTALL_LOCATION }}"
# Setup dependencies
- name: setup dependencies
run: |
export VULKAN_SDK=${{ env.INSTALL_LOCATION }}/vulkansdk-macos-1.2.135.0/macOS
make setup
# Build the app
- name: build project
run: |
export VULKAN_SDK=${{ env.INSTALL_LOCATION }}/vulkansdk-macos-1.2.135.0/macOS
make bin/app
# Clean the binaries
- name: clean
run: make clean
# Try build app in another compiler
- name: make bin/app CXX=g++
run: |
export VULKAN_SDK=${{ env.INSTALL_LOCATION }}/vulkansdk-macos-1.2.135.0/macOS
make bin/app CXX=g++