-
-
Notifications
You must be signed in to change notification settings - Fork 5
28 lines (26 loc) · 997 Bytes
/
swift-macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Swift (macOS arm64)
on: [push]
jobs:
build:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
os: [macos-15]
swift: ["6.0.2"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: 🦦 Install Swift Bundler
run: |
curl -o swift-bundler -L https://github.com/wabiverse/wabi-swift-bundler/releases/download/v3.0.2/swift-bundler
chmod +x ./swift-bundler
sudo cp ./swift-bundler /usr/local/bin/
rm ./swift-bundler
- name: 🧰 Enable Swift Macros
run: |
sudo defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES
sudo defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES
- name: 🔥 Dumb Xcode IDE Hack
run: open -a "/Applications/Xcode.app" ./Package.swift
- name: 📦 Build & Bundle
run: swift bundler bundle -c release --xcodebuild