Remove CI workaround again #404
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] | |
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 |