Skip to content

Commit

Permalink
Use github actions runner, not self hosted & use bundler.
Browse files Browse the repository at this point in the history
Signed-off-by: furby™ <[email protected]>
  • Loading branch information
furby-tm committed Dec 1, 2024
1 parent 2e3bc87 commit 85aab1a
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 13 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/swift-debug-macos.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Tests (macOS arm64)
name: Build Debug (macOS arm64)

on: [push]

Expand All @@ -7,10 +7,15 @@ jobs:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
os: [self-hosted]
os: [macos-latest]
swift: ["5.10"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: 🧪 Test
run: swift test
- name: 🦦 Install Swift Bundler
run: |
curl -o swift-bundler -L https://github.com/wabiverse/wabi-swift-bundler/releases/download/v3.0.0/swift-bundler
chmod +x ./swift-bundler
cp ./swift-bundler /usr/local/bin
- name: 📦 Build & Bundle
run: ./swift-bundler bundle -c debug --xcodebuild
11 changes: 8 additions & 3 deletions .github/workflows/swift-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ jobs:
name: Swift ${{ matrix.swift }} on iOS
strategy:
matrix:
os: [self-hosted]
os: [macos-latest]
swift: ["5.10"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: 📦 Build
run: swift bundler bundle -c release -p iOSSimulator UsdView
- name: 🦦 Install Swift Bundler
run: |
curl -o swift-bundler -L https://github.com/wabiverse/wabi-swift-bundler/releases/download/v3.0.0/swift-bundler
chmod +x ./swift-bundler
cp ./swift-bundler /usr/local/bin
- name: 📦 Build & Bundle
run: ./swift-bundler bundle -c release -p iOSSimulator UsdView
11 changes: 8 additions & 3 deletions .github/workflows/swift-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ jobs:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
os: [self-hosted]
os: [macos-latest]
swift: ["5.10"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: 📦 Build
run: swift build -c release --target UsdView
- name: 🦦 Install Swift Bundler
run: |
curl -o swift-bundler -L https://github.com/wabiverse/wabi-swift-bundler/releases/download/v3.0.0/swift-bundler
chmod +x ./swift-bundler
cp ./swift-bundler /usr/local/bin
- name: 📦 Build & Bundle
run: ./swift-bundler bundle -c release --xcodebuild
11 changes: 8 additions & 3 deletions .github/workflows/swift-visionos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ jobs:
name: Swift ${{ matrix.swift }} on visionOS
strategy:
matrix:
os: [self-hosted]
os: [macos-latest]
swift: ["5.10"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: 📦 Build
run: swift bundler bundle -c release -p visionOSSimulator UsdView
- name: 🦦 Install Swift Bundler
run: |
curl -o swift-bundler -L https://github.com/wabiverse/wabi-swift-bundler/releases/download/v3.0.0/swift-bundler
chmod +x ./swift-bundler
cp ./swift-bundler /usr/local/bin
- name: 📦 Build & Bundle
run: ./swift-bundler bundle -c release -p visionOSSimulator UsdView

0 comments on commit 85aab1a

Please sign in to comment.