Skip to content

Disable WavPack in sdl2-mixer. #79

Disable WavPack in sdl2-mixer.

Disable WavPack in sdl2-mixer. #79

Workflow file for this run

name: Build
on: [push, pull_request, workflow_dispatch]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
build:
permissions:
contents: read
strategy:
fail-fast: false
matrix:
include:
- name: Windows
os: windows-latest
preset: windows-x64-release
- name: Linux
os: ubuntu-latest
preset: linux-release
- name: macOS
os: macos-14
preset: macos-arm64-release
runs-on: ${{ matrix.os }}
steps:
- name: Find MSVC (Windows)
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1
- name: Choose the latest XCode (macOS)
if: runner.os == 'macOS'
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest
- name: Get cmake and ninja
uses: lukka/get-cmake@latest
- name: Fetch repo
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Restore artifacts, or setup vcpkg (do not install any package)
uses: lukka/run-vcpkg@v11
with:
vcpkgDirectory: external/vcpkg/vcpkg
vcpkgJsonGlob: cmake/vcpkg.json
prependedCacheKey: "build/${{ matrix.preset }}"
- name: Build
uses: lukka/run-cmake@v10
with:
configurePreset: "${{ matrix.preset }}"
buildPreset: "${{ matrix.preset }}"
testPreset: "${{ matrix.preset }}"
- name: Block cache on failure
if: ${{ failure() || cancelled() }}
shell: bash
run: echo "RUNVCPKG_NO_CACHE=1" >> $GITHUB_ENV