diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index fa5c4090..cd7e9378 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -5,6 +5,8 @@ on: branches: [ main ] pull_request: branches: [ main ] + pull_request_target: + branches: [ main ] jobs: build_and_test_spm_mac: @@ -47,12 +49,6 @@ jobs: - uses: webfactory/ssh-agent@v0.5.3 with: ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }} - # Workarounds for Xcode/SPM failing to get packages - - run: sudo defaults write com.apple.dt.Xcode IDEPackageSupportUseBuiltinSCM YES - - run: rm ~/.ssh/id_rsa || true - - run: for ip in $(dig @8.8.8.8 bitbucket.org +short); do ssh-keyscan bitbucket.org,$ip; ssh-keyscan $ip; done 2>/dev/null >> ~/.ssh/known_hosts || true - - run: for ip in $(dig @8.8.8.8 github.com +short); do ssh-keyscan github.com,$ip; ssh-keyscan $ip; done 2>/dev/null >> ~/.ssh/known_hosts || true - # Xcodebuild will automatically build so no need to call it out specifically. - run: xcodebuild -scheme Segment-Package test -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11' build_and_test_tvos: @@ -65,12 +61,6 @@ jobs: - uses: webfactory/ssh-agent@v0.5.3 with: ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }} - # Workarounds for Xcode/SPM failing to get packages - - run: sudo defaults write com.apple.dt.Xcode IDEPackageSupportUseBuiltinSCM YES - - run: rm ~/.ssh/id_rsa || true - - run: for ip in $(dig @8.8.8.8 bitbucket.org +short); do ssh-keyscan bitbucket.org,$ip; ssh-keyscan $ip; done 2>/dev/null >> ~/.ssh/known_hosts || true - - run: for ip in $(dig @8.8.8.8 github.com +short); do ssh-keyscan github.com,$ip; ssh-keyscan $ip; done 2>/dev/null >> ~/.ssh/known_hosts || true - # Xcodebuild will automatically build so no need to call it out specifically. - run: xcodebuild -scheme Segment-Package test -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV' build_and_test_watchos: @@ -83,12 +73,6 @@ jobs: - uses: webfactory/ssh-agent@v0.5.3 with: ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }} - # Workarounds for Xcode/SPM failing to get packages - - run: sudo defaults write com.apple.dt.Xcode IDEPackageSupportUseBuiltinSCM YES - - run: rm ~/.ssh/id_rsa || true - - run: for ip in $(dig @8.8.8.8 bitbucket.org +short); do ssh-keyscan bitbucket.org,$ip; ssh-keyscan $ip; done 2>/dev/null >> ~/.ssh/known_hosts || true - - run: for ip in $(dig @8.8.8.8 github.com +short); do ssh-keyscan github.com,$ip; ssh-keyscan $ip; done 2>/dev/null >> ~/.ssh/known_hosts || true - # Xcodebuild will automatically build so no need to call it out specifically. - run: xcodebuild -scheme Segment-Package test -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch Series 5 - 40mm' build_examples: @@ -101,11 +85,6 @@ jobs: - uses: webfactory/ssh-agent@v0.5.3 with: ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }} - # Workarounds for Xcode/SPM failing to get packages - - run: sudo defaults write com.apple.dt.Xcode IDEPackageSupportUseBuiltinSCM YES - - run: rm ~/.ssh/id_rsa || true - - run: for ip in $(dig @8.8.8.8 bitbucket.org +short); do ssh-keyscan bitbucket.org,$ip; ssh-keyscan $ip; done 2>/dev/null >> ~/.ssh/known_hosts || true - - run: for ip in $(dig @8.8.8.8 github.com +short); do ssh-keyscan github.com,$ip; ssh-keyscan $ip; done 2>/dev/null >> ~/.ssh/known_hosts || true - name: build for ios simulator run: | cd Examples/apps/BasicExample