Skip to content

Commit 211702f

Browse files
authored
Switch back to online installer for smoke tests (#1034)
* Revert "Use offline installer for smoke tests" This reverts commit d89a917. * Add a Sleep step * Move things around
1 parent dbbc014 commit 211702f

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

.github/workflows/swift-toolchain.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5178,10 +5178,17 @@ jobs:
51785178
runs-on: ${{ inputs.default_build_runner }}
51795179

51805180
steps:
5181-
- name: Download Swift SDK Installer (offline)
5181+
- uses: actions/[email protected]
5182+
with:
5183+
repository: compnerd/swift-win32
5184+
ref: refs/heads/main
5185+
path: ${{ github.workspace }}/SourceCache/swift-win32
5186+
show-progress: false
5187+
5188+
- name: Download Swift SDK Installer (${{ inputs.release && 'online' || 'offline' }})
51825189
uses: actions/download-artifact@v4
51835190
with:
5184-
name: Windows-${{ inputs.build_arch }}-installer-offline
5191+
name: Windows-${{ inputs.build_arch }}-installer-${{ inputs.release && 'online' || 'offline' }}
51855192
path: ${{ github.workspace }}/tmp
51865193

51875194
# TODO(compnerd): migrate this to compnerd/gha-setup-swift after the work that @mangini is doing is completed
@@ -5218,13 +5225,6 @@ jobs:
52185225
echo "$env:Path" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
52195226
Get-ChildItem Env: | % { echo "$($_.Name)=$($_.Value)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append }
52205227
5221-
- uses: actions/[email protected]
5222-
with:
5223-
repository: compnerd/swift-win32
5224-
ref: refs/heads/main
5225-
path: ${{ github.workspace }}/SourceCache/swift-win32
5226-
show-progress: false
5227-
52285228
- run: swift build
52295229
working-directory: ${{ github.workspace }}/SourceCache/swift-win32
52305230

@@ -5295,10 +5295,24 @@ jobs:
52955295
arch: [ x86_64, aarch64 ]
52965296

52975297
steps:
5298-
- name: Download Swift SDK Installer (offline)
5298+
- name: Checkout cassowary project
5299+
uses: actions/[email protected]
5300+
with:
5301+
repository: compnerd/cassowary
5302+
ref: 0.0.2
5303+
path: ${{ github.workspace }}/SourceCache/cassowary
5304+
5305+
- name: Install Android NDK
5306+
uses: nttld/setup-ndk@v1
5307+
id: setup-ndk
5308+
with:
5309+
ndk-version: ${{ inputs.ANDROID_NDK_VERSION }}
5310+
local-cache: true
5311+
5312+
- name: Download Swift SDK Installer (${{ inputs.release && 'online' || 'offline' }})
52995313
uses: actions/download-artifact@v4
53005314
with:
5301-
name: Windows-${{ inputs.build_arch }}-installer-offline
5315+
name: Windows-${{ inputs.build_arch }}-installer-${{ inputs.release && 'online' || 'offline' }}
53025316
path: ${{ github.workspace }}/tmp
53035317

53045318
# TODO(compnerd): migrate this to compnerd/gha-setup-swift after the work that @mangini is doing is completed
@@ -5336,27 +5350,13 @@ jobs:
53365350
echo "$env:Path" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
53375351
Get-ChildItem Env: | % { echo "$($_.Name)=$($_.Value)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append }
53385352
5339-
- name: Install Android NDK
5340-
uses: nttld/setup-ndk@v1
5341-
id: setup-ndk
5342-
with:
5343-
ndk-version: ${{ inputs.ANDROID_NDK_VERSION }}
5344-
local-cache: true
5345-
53465353
- name: Setup Swift environment
53475354
id: android-swift-env
53485355
run: |
53495356
echo "sysroot=$(resolve-path ${{ steps.setup-ndk.outputs.ndk-path }}\toolchains\llvm\prebuilt\windows-x86_64\sysroot)" >> $env:GITHUB_OUTPUT
53505357
echo "sdkroot=$(resolve-path $env:SDKROOT\..\..\..\..\Android.platform\Developer\SDKs\Android.sdk)" >> $env:GITHUB_OUTPUT
53515358
echo "clang-resource-dir=$(& $(resolve-path "${{ steps.setup-ndk.outputs.ndk-path }}\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe") -print-resource-dir)" >> $env:GITHUB_OUTPUT
53525359
5353-
- name: Checkout cassowary project
5354-
uses: actions/[email protected]
5355-
with:
5356-
repository: compnerd/cassowary
5357-
ref: 0.0.2
5358-
path: ${{ github.workspace }}/SourceCache/cassowary
5359-
53605360
- name: Build cassowary project
53615361
run: |
53625362
swift build `

0 commit comments

Comments
 (0)