Fix macOS CI: Update Vulkan toolchain and migrate to winit 0.30/ash 0.38 APIs #135
Workflow file for this run
This file contains hidden or 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 CI Build | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| 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: | | |
| VULKAN_SDK_VERSION="1.4.304.0" | |
| 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..." | |
| sudo /tmp/InstallVulkan.app/Contents/MacOS/InstallVulkan --root ~/VulkanSDK/${VULKAN_SDK_VERSION} --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 |