Skip to content
This repository was archived by the owner on Dec 27, 2025. It is now read-only.

Commit d775bea

Browse files
committed
ci: enable manual dispatch and use default Xcode
1 parent c7dadf2 commit d775bea

File tree

6 files changed

+15
-20
lines changed

6 files changed

+15
-20
lines changed

.github/workflows/SwiftPM.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ on:
55
branches: [ master ]
66
pull_request:
77
branches: [ master ]
8-
9-
env:
10-
DEVELOPER_DIR: /Applications/Xcode_11.5.app/Contents/Developer
8+
workflow_dispatch:
119

1210
jobs:
1311
build:

.github/workflows/jazzy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020
- 'Gemfile*'
2121
- 'Package*'
2222
- 'Sources/**/*.swift'
23+
workflow_dispatch:
2324

2425
jobs:
2526
Jazzy:

.github/workflows/pod_lib_lint.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ on:
1616
- 'Gemfile*'
1717
- 'Sources/**/*.[ch]'
1818
- 'Sources/**/*.swift'
19+
workflow_dispatch:
1920

2021
jobs:
2122
pod_lib_lint:
2223
name: pod lib lint
2324
runs-on: macos-latest
24-
env:
25-
DEVELOPER_DIR: /Applications/Xcode_11.5.app
2625
steps:
2726
- uses: actions/checkout@v2
2827
- run: bundle install --path vendor/bundle
29-
- run: bundle exec pod lib lint --verbose
28+
- run: bundle exec pod lib lint --verbose

.github/workflows/swiftlint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ on:
66
- '.github/workflows/swiftlint.yml'
77
- '.swiftlint.yml'
88
- '**/*.swift'
9+
workflow_dispatch:
910

1011
jobs:
1112
SwiftLint:
1213
runs-on: ubuntu-latest
1314
steps:
1415
- uses: actions/checkout@v2
1516
- name: GitHub Action for SwiftLint
16-
uses: norio-nomura/[email protected]
17+
uses: norio-nomura/[email protected]

.github/workflows/swiftlint_analyze.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ on:
1818
- 'Sources/**/*.swift'
1919
- '!Tests/**/*.swift'
2020
- '!Tests/LinuxMain.swift'
21+
workflow_dispatch:
2122

2223
jobs:
2324
Analyze:
2425
runs-on: macos-latest
25-
env:
26-
DEVELOPER_DIR: /Applications/Xcode_11.5.app
2726
steps:
2827
- uses: actions/checkout@v2
2928
- name: Generate xcodebuild.log

.github/workflows/xcodebuild.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,38 +18,35 @@ on:
1818
- 'Sources/**/*.swift'
1919
- 'Tests/**/*.swift'
2020
- '!Tests/LinuxMain.swift'
21+
workflow_dispatch:
2122

2223
jobs:
2324
xcodebuild:
2425
strategy:
2526
matrix:
26-
xcode:
27-
- version: '11.4'
28-
flags_for_test: -parallel-testing-enabled NO -enableCodeCoverage YES
29-
- version: '11.5'
27+
include:
28+
- name: default
3029
flags_for_test: -parallel-testing-enabled NO -enableCodeCoverage YES
3130
xcode_flags: ['-scheme InterposeKit -project InterposeKit.xcodeproj']
3231
runs-on: macos-latest
33-
env:
34-
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode.version }}.app
3532
steps:
3633
- uses: actions/checkout@v2
3734
- run: xcodebuild -version
3835
- name: macOS with UTF16
3936
if: always()
40-
run: YAMS_DEFAULT_ENCODING=UTF16 xcodebuild ${{ matrix.xcode_flags }} ${{ matrix.xcode.flags_for_test }} test | xcpretty
37+
run: YAMS_DEFAULT_ENCODING=UTF16 xcodebuild ${{ matrix.xcode_flags }} ${{ matrix.flags_for_test }} test | xcpretty
4138
shell: bash
4239
- name: macOS with UTF8
4340
if: always()
44-
run: YAMS_DEFAULT_ENCODING=UTF8 xcodebuild ${{ matrix.xcode_flags }} ${{ matrix.xcode.flags_for_test }} test | xcpretty
41+
run: YAMS_DEFAULT_ENCODING=UTF8 xcodebuild ${{ matrix.xcode_flags }} ${{ matrix.flags_for_test }} test | xcpretty
4542
shell: bash
4643
- name: iPhone Simulator
4744
if: always()
48-
run: xcodebuild ${{ matrix.xcode_flags }} ${{ matrix.xcode.flags_for_test }} test -sdk iphonesimulator -destination "name=iPhone 8" | xcpretty
45+
run: xcodebuild ${{ matrix.xcode_flags }} ${{ matrix.flags_for_test }} test -sdk iphonesimulator -destination "name=iPhone 15" | xcpretty
4946
shell: bash
5047
- name: Apple TV Simulator
5148
if: always()
52-
run: xcodebuild ${{ matrix.xcode_flags }} ${{ matrix.xcode.flags_for_test }} test -sdk appletvsimulator -destination "name=Apple TV 4K" | xcpretty
49+
run: xcodebuild ${{ matrix.xcode_flags }} ${{ matrix.flags_for_test }} test -sdk appletvsimulator -destination "name=Apple TV 4K" | xcpretty
5350
shell: bash
5451
- name: watchOS Simulator
5552
if: always()
@@ -62,4 +59,4 @@ jobs:
6259
curl -s https://codecov.io/bash | bash -s
6360
fi
6461
shell: bash
65-
env: { 'CODECOV_TOKEN': '${{ secrets.CODECOV_TOKEN }}' }
62+
env: { 'CODECOV_TOKEN': '${{ secrets.CODECOV_TOKEN }}' }

0 commit comments

Comments
 (0)