docs: add Windows build instructions (#55) #81
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 CI Build | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
macos-build: | |
runs-on: macos-latest | |
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 | |
curl -O https://sdk.lunarg.com/sdk/download/1.2.198.1/mac/vulkansdk-macos-1.2.198.1.dmg | |
hdiutil attach vulkansdk-macos-1.2.198.1.dmg | |
cd /Volumes/vulkansdk-macos-1.2.198.1 | |
sudo ./InstallVulkan.app/Contents/MacOS/InstallVulkan --root ~/VulkanSDK/1.2.176.1 --accept-licenses --default-answer --confirm-command install | |
- 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=x64-osx | |
vcpkg integrate install | |
- name: Build | |
run: cargo build --workspace --release --verbose |