Try unlinking pkg-config directly #400
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: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: ['ubuntu-latest', 'macos-15'] | |
swift: ['6.0'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install native dependencies (Linux) | |
if: runner.os == 'Linux' | |
run: sudo Scripts/install-build-dependencies-apt | |
- name: Install native dependencies (macOS) | |
if: runner.os == 'macOS' | |
run: | | |
# Work around an upstream issue with the runner image: | |
# https://github.com/actions/runner-images/issues/8500 | |
brew upgrade || brew link --overwrite [email protected] | |
# Work around another potential upstream issue | |
# https://github.com/fwcd/d2/actions/runs/11991028156/job/33429199902 | |
brew unlink [email protected] | |
Scripts/install-dependencies-brew | |
- name: Install Swift | |
# https://github.com/swift-actions/setup-swift/pull/684 | |
uses: swift-actions/setup-swift@736b146b8f26e7a66cbe3a89bc8d413ac0ea536e | |
with: | |
swift-version: ${{ matrix.swift }} | |
- name: Build | |
run: swift build | |
- name: Test | |
run: swift test |