Add simple phong shading rendering #161
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
name: macOS | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build-macos: | |
env: | |
build_type: "Release" | |
vulkan_version: "1.3.204.1" | |
vulkan_sdk: "/Volumes/vulkansdk-macos-1.3.204.1" | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: "macOS 10.15 + Xcode 11.7" | |
os: macos-10.15 | |
compiler: xcode | |
version: "11.7" | |
- name: "macOS 10.15 + Xcode 12.2" | |
os: macos-10.15 | |
compiler: xcode | |
version: "12.2" | |
runs-on: ${{matrix.os}} | |
name: ${{matrix.name}} | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
submodules: true | |
- name: Configure Compiler | |
shell: bash | |
run: | | |
ls -ls /Applications/ | |
sudo xcode-select -switch /Applications/Xcode_${{ matrix.version }}.app | |
echo "CC=clang" >> $GITHUB_ENV | |
echo "CXX=clang++" >> $GITHUB_ENV | |
- name: Configure Vulkan SDK using the downloaded spec | |
uses: humbletim/[email protected] | |
with: | |
vulkan-query-version: ${{ env.vulkan_version }} | |
vulkan-components: Vulkan-Headers, Vulkan-Loader | |
vulkan-use-cache: true | |
- name: Execute bootstrap script | |
shell: bash | |
run: | | |
python3 bootstrap.py | |
- name: Configure Build | |
run: | | |
mkdir build | |
cd build && cmake .. -DCMAKE_BUILD_TYPE=${{env.build_type}} -DCUBBYFLOW_TASKING_SYSTEM=CPP11Thread | |
- name: Build | |
run: cd build && make |