Skip to content

Fix macOS CI: Update Vulkan toolchain and migrate to winit 0.30/ash 0.38 APIs #140

Fix macOS CI: Update Vulkan toolchain and migrate to winit 0.30/ash 0.38 APIs

Fix macOS CI: Update Vulkan toolchain and migrate to winit 0.30/ash 0.38 APIs #140

Workflow file for this run

name: macOS CI Build
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always
VULKAN_SDK_VERSION: "1.4.304.0"
jobs:
macos-build:
runs-on: macos-latest
env:
VCPKG_FEATURE_FLAGS: manifests
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Install Deps
run: |
brew install automake fdk-aac git lame libass libtool libvorbis libvpx opus sdl shtool texi2html theora wget x264 x265 xvid nasm
- name: Install Vulkan SDK
run: |
curl -L -o /tmp/vulkan_sdk.zip https://sdk.lunarg.com/sdk/download/${VULKAN_SDK_VERSION}/mac/vulkan_sdk.zip
unzip -q /tmp/vulkan_sdk.zip -d /tmp
# The zip extracts to InstallVulkan.app
if [ -d "/tmp/InstallVulkan.app" ]; then
echo "Using InstallVulkan.app installer..."
# Install to system location (default) instead of custom --root
sudo /tmp/InstallVulkan.app/Contents/MacOS/InstallVulkan --accept-licenses --default-answer --confirm-command install
rm -rf /tmp/InstallVulkan.app
else
echo "Error: Could not find Vulkan SDK installer"
ls -la /tmp/ | grep -i vulkan || true
exit 1
fi
rm -f /tmp/vulkan_sdk.zip
- name: Cache ffmpeg
uses: actions/cache@v3
with:
path: vcpkg_installed
key: ${{ runner.os }}-build-ffmpeg
- name: Install ffmpeg
run: |
vcpkg x-update-baseline
vcpkg install --triplet=arm64-osx
vcpkg integrate install
- name: Build
run: cargo build --workspace --release --verbose