Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 committed Aug 13, 2024
1 parent 3686476 commit 4fa6bcd
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 74 deletions.
73 changes: 38 additions & 35 deletions .github/actions/ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,41 +31,44 @@ runs:
shell: bash
run: gem install cocoapods

- name: Lint the podspec
shell: bash
run: pod spec lint LDSwiftEventSource.podspec

- name: Build & Test on macOS Simulator
shell: bash
run: xcodebuild test -scheme 'LDSwiftEventSource' -sdk macosx -destination 'platform=macOS' | xcpretty

- name: Build for ARM64 macOS
shell: bash
run: xcodebuild build -scheme 'LDSwiftEventSource' -arch arm64e -sdk macosx | xcpretty

- name: Build Tests for iOS device
shell: bash
run: xcodebuild build-for-testing -scheme 'LDSwiftEventSource' -sdk iphoneos CODE_SIGN_IDENTITY= | xcpretty

- name: Build & Test on iOS Simulator
shell: bash
run: xcodebuild test -scheme 'LDSwiftEventSource' -sdk iphonesimulator -destination '${{ inputs.ios-sim }}' CODE_SIGN_IDENTITY= | xcpretty

- name: Build Tests for tvOS device
shell: bash
run: xcodebuild build-for-testing -scheme 'LDSwiftEventSource' -sdk appletvos CODE_SIGN_IDENTITY= | xcpretty

- name: Build & Test on tvOS Simulator
shell: bash
run: xcodebuild test -scheme 'LDSwiftEventSource' -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV' | xcpretty

- name: Build for watchOS simulator # No XCTest testing on watchOS
shell: bash
run: xcodebuild build -scheme 'LDSwiftEventSource' -sdk watchsimulator | xcpretty

- name: Build for watchOS device # No XCTest testing on watchOS
shell: bash
run: xcodebuild build -scheme 'LDSwiftEventSource' -sdk watchos | xcpretty
# - name: Lint the podspec
# shell: bash
# run: pod spec lint LDSwiftEventSource.podspec
#
# - name: Build & Test on macOS Simulator
# shell: bash
# run: xcodebuild test -scheme 'LDSwiftEventSource' -sdk macosx -destination 'platform=macOS' | xcpretty
#
# - name: Build for ARM64 macOS
# shell: bash
# run: xcodebuild build -scheme 'LDSwiftEventSource' -arch arm64e -sdk macosx | xcpretty
#
# - name: Build Tests for iOS device
# shell: bash
# run: xcodebuild build-for-testing -scheme 'LDSwiftEventSource' -sdk iphoneos CODE_SIGN_IDENTITY= | xcpretty
#
# - name: Build & Test on iOS Simulator
# shell: bash
# run: xcodebuild test -scheme 'LDSwiftEventSource' -sdk iphonesimulator -destination '${{ inputs.ios-sim }}' CODE_SIGN_IDENTITY= | xcpretty
#
# - name: Build Tests for tvOS device
# shell: bash
# run: xcodebuild build-for-testing -scheme 'LDSwiftEventSource' -sdk appletvos CODE_SIGN_IDENTITY= | xcpretty
#
# - name: Build & Test on tvOS Simulator
# shell: bash
# run: xcodebuild test -scheme 'LDSwiftEventSource' -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV' | xcpretty
#
# - name: Build for watchOS simulator # No XCTest testing on watchOS
# shell: bash
# run: xcodebuild build -scheme 'LDSwiftEventSource' -sdk watchsimulator | xcpretty
#
# - name: Build for watchOS device # No XCTest testing on watchOS
# shell: bash
# run: xcodebuild build -scheme 'LDSwiftEventSource' -sdk watchos | xcpretty

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3

- name: Build & Test with swiftpm
shell: bash
Expand Down
78 changes: 39 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
- xcode-version: 15.0.1
ios-sim: 'platform=iOS Simulator,name=iPhone 17,OS=17.0'
os: macos-13
- xcode-version: 14.3.1
ios-sim: 'platform=iOS Simulator,name=iPhone 16,OS=16.4'
os: macos-13
- xcode-version: 13.4.1
ios-sim: 'platform=iOS Simulator,name=iPhone 11,OS=15.5'
os: macos-12
# - xcode-version: 14.3.1
# ios-sim: 'platform=iOS Simulator,name=iPhone 16,OS=16.4'
# os: macos-13
# - xcode-version: 13.4.1
# ios-sim: 'platform=iOS Simulator,name=iPhone 11,OS=15.5'
# os: macos-12

steps:
- uses: actions/checkout@v4
Expand All @@ -40,36 +40,36 @@ jobs:

- uses: ./.github/actions/build-docs

linux-build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
swift-version:
- 5.7
- 5.8
- 5.9

container: swift:${{ matrix.swift-version }}

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # If you only need the current version keep this.

- name: Build and test
run: swift test --enable-test-discovery

windows-build:
name: Windows - Swift 5.9
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install Swift
uses: compnerd/gha-setup-swift@cd348eb89f2f450b0664c07fb1cb66880addf17d
with:
branch: swift-5.9-release
tag: 5.9-RELEASE
- name: Build and test
run: swift test
# linux-build:
# runs-on: ubuntu-latest
#
# strategy:
# fail-fast: false
# matrix:
# swift-version:
# - 5.7
# - 5.8
# - 5.9
#
# container: swift:${{ matrix.swift-version }}
#
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0 # If you only need the current version keep this.
#
# - name: Build and test
# run: swift test --enable-test-discovery
#
# windows-build:
# name: Windows - Swift 5.9
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v4
# - name: Install Swift
# uses: compnerd/gha-setup-swift@cd348eb89f2f450b0664c07fb1cb66880addf17d
# with:
# branch: swift-5.9-release
# tag: 5.9-RELEASE
# - name: Build and test
# run: swift test

0 comments on commit 4fa6bcd

Please sign in to comment.