-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Swift SDK for development snapshot testing in CI (#248)
- Loading branch information
1 parent
9ad94b9
commit 8449f87
Showing
4 changed files
with
81 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
inputs: | ||
swift-dir: | ||
description: The directory name part of the distribution URL | ||
required: true | ||
swift-version: | ||
description: Git tag indicating the Swift version | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
# https://www.swift.org/install/linux/#installation-via-tarball | ||
- name: Install dependent packages for Swift | ||
shell: bash | ||
run: > | ||
sudo apt-get -q update && | ||
sudo apt-get install -y | ||
binutils | ||
git | ||
gnupg2 | ||
libc6-dev | ||
libcurl4-openssl-dev | ||
libedit2 | ||
libgcc-9-dev | ||
libpython3.8 | ||
libsqlite3-0 | ||
libstdc++-9-dev | ||
libxml2-dev | ||
libz3-dev | ||
pkg-config | ||
tzdata | ||
unzip | ||
zlib1g-dev | ||
curl | ||
- name: Download Swift | ||
shell: bash | ||
run: curl -fLO https://download.swift.org/${{ inputs.swift-dir }}/${{ inputs.swift-version }}/${{ inputs.swift-version }}-ubuntu22.04.tar.gz | ||
working-directory: ${{ env.RUNNER_TEMP }} | ||
|
||
- name: Unarchive and Install Swift | ||
shell: bash | ||
run: sudo tar -xf ${{ inputs.swift-version }}-ubuntu22.04.tar.gz --strip-components=2 -C /usr/local | ||
working-directory: ${{ env.RUNNER_TEMP }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters