Update dependency nicklockwood/SwiftFormat to v0.55.1 #188
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 | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
macOS-build-release: | |
runs-on: macOS-latest | |
strategy: | |
matrix: | |
xcode: ["14.2"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3.5.3 | |
- name: Restore cached Homebrew dependencies | |
uses: actions/cache@v3.3.1 | |
with: | |
path: | | |
~/Library/Caches/Homebrew/sdl2--* | |
~/Library/Caches/Homebrew/downloads/*--sdl2-* | |
key: ${{ runner.os }}-brew-sdl2-${{ hashFiles('.github/brew-formulae') }} | |
restore-keys: ${{ runner.os }}-brew-sdl2- | |
- name: Restore cached SPM dependencies | |
uses: actions/cache@v3.3.1 | |
with: | |
path: | | |
.build/repositories | |
.build/checkouts | |
key: ${{ runner.os }}-spm-deps-${{ hashFiles('**/Package.resolved') }} | |
restore-keys: | | |
${{ runner.os }}-spm-deps- | |
- name: Select Xcode ${{ matrix.xcode }} | |
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app | |
- name: Install dependencies | |
run: | | |
brew install sdl2 | |
- name: Test | |
run: swift test | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer | |
FRB_ENABLE_GRAPHICS_VULKAN: 0 # disable Vulkan on macOS CI until setup is smoothed out. | |
- name: Upload test artifacts | |
if: failure() | |
uses: actions/upload-artifact@v3.1.2 | |
with: | |
name: test-artifacts-${{ matrix.xcode }}-${{ github.run_id }} | |
path: | | |
.build/**/*.json | |
.build/**/*.xctest | |
- name: Build Release | |
run: swift build -c release | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer | |
FRB_ENABLE_GRAPHICS_VULKAN: 0 # disable Vulkan on macOS CI until setup is smoothed out. | |
- name: Upload build artifacts | |
if: failure() | |
uses: actions/upload-artifact@v3.1.2 | |
with: | |
name: build-artifacts-${{ matrix.xcode }}-${{ github.run_id }} | |
path: | | |
*.lcov | |
.build/*.yaml | |
.build/**/*.a | |
.build/**/*.so | |
.build/**/*.dylib | |
.build/**/*.dSYM | |
.build/**/*.json |