Skip to content

Commit df51dba

Browse files
committed
Add mock job to ensure my additions are actually being picked up
1 parent 0cafce8 commit df51dba

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/swift_package_test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,42 @@ jobs:
217217
run: ${{ inputs.macos_build_command }} ${{ (contains(matrix.swift_version, 'nightly') && inputs.swift_nightly_flags) || inputs.swift_flags }}
218218
timeout-minutes: 60
219219

220+
macos-build-2:
221+
name: FAUX iOS (Build Only, Xcode ${{ matrix.xcode_version }} - ${{ matrix.os_version }} - ${{ matrix.arch }})
222+
if: ${{ inputs.enable_macos_checks }}
223+
runs-on: [self-hosted, macos, "${{ matrix.os_version }}", "${{ matrix.arch }}"]
224+
strategy:
225+
fail-fast: false
226+
matrix:
227+
xcode_version: ${{ fromJson(inputs.macos_xcode_versions) }}
228+
os_version: ${{ fromJson(inputs.macos_versions) }}
229+
arch: ${{ fromJson(inputs.macos_archs) }}
230+
exclude:
231+
- ${{ fromJson(inputs.macos_exclude_xcode_versions) }}
232+
steps:
233+
- name: Checkout repository
234+
uses: actions/checkout@v4
235+
- name: Provide token
236+
if: ${{ inputs.needs_token }}
237+
run: |
238+
echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
239+
- name: Set environment variables
240+
if: ${{ inputs.macos_env_vars }}
241+
run: |
242+
for i in "${{ inputs.macos_env_vars }}"
243+
do
244+
printf "%s\n" $i >> $GITHUB_ENV
245+
done
246+
- name: Select Xcode
247+
run: echo "DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode_version }}.app" >> $GITHUB_ENV
248+
- name: Swift version
249+
run: xcrun swift --version
250+
- name: Pre-build
251+
run: ${{ inputs.macos_pre_build_command }}
252+
- name: Build / Test
253+
run: ${{ inputs.macos_build_command }} ${{ (contains(matrix.swift_version, 'nightly') && inputs.swift_nightly_flags) || inputs.swift_flags }}
254+
timeout-minutes: 60
255+
220256
ios-build:
221257
name: iOS (Build Only, Xcode ${{ matrix.xcode_version }} - ${{ matrix.os_version }} - ${{ matrix.arch }})
222258
if: ${{ inputs.enable_ios_checks }}

0 commit comments

Comments
 (0)