Skip to content

Add latest release to Android CI matrix#3561

Open
marcprux wants to merge 1 commit intoapple:mainfrom
swift-android-sdk:android-latest
Open

Add latest release to Android CI matrix#3561
marcprux wants to merge 1 commit intoapple:mainfrom
swift-android-sdk:android-latest

Conversation

@marcprux
Copy link
Copy Markdown
Contributor

Build swift-nio against latest Android release

Motivation:

With the release of official Android support, we can now tests against the latest release (6.3) as well as main.

Modifications:

Updates the generate-matrix step of the Android CI matrix to add the latest release tag. This mirrors how it is done with the static Linux SDK:

static-sdk-matrix=$(echo '{
"config":[
{
"name":"latest-release Jammy",
"swift_version":"latest-release",
"platform":"Linux",
"runner":"ubuntu-latest",
"image":"ubuntu:jammy",
"setup_command":"apt update -q && apt install -y -q curl jq tar && curl -s --retry 3 https://raw.githubusercontent.com/apple/swift-nio/main/scripts/install_swift_prerequisites.sh | bash && curl -s --retry 3 https://raw.githubusercontent.com/apple/swift-nio/main/scripts/install_swift_sdk.sh | INSTALL_SWIFT_VERSION=latest INSTALL_SWIFT_ARCH=x86_64 bash && hash -r",
"command":"swift build",
"command_arguments":"--swift-sdks-path /tmp/swiftsdks '"$INPUT_COMMAND_ARGUMENTS"'",
"env":'"$env_vars_json"'
},
{
"name":"main Jammy",
"swift_version":"main",
"platform":"Linux",
"runner":"ubuntu-latest",
"image":"ubuntu:jammy",
"setup_command":"apt update -q && apt install -y -q curl jq tar && curl -s --retry 3 https://raw.githubusercontent.com/apple/swift-nio/main/scripts/install_swift_prerequisites.sh | bash && curl -s --retry 3 https://raw.githubusercontent.com/apple/swift-nio/main/scripts/install_swift_sdk.sh | INSTALL_SWIFT_BRANCH=main INSTALL_SWIFT_ARCH=x86_64 bash && hash -r",
"command":"swift build",
"command_arguments":"--swift-sdks-path /tmp/swiftsdks '"$INPUT_COMMAND_ARGUMENTS"'",
"env":'"$env_vars_json"'
}
]
}' | jq -c)

Result:

Android CI will run against both the latest release as well as main.

@marcprux
Copy link
Copy Markdown
Contributor Author

See also the related swiftlang/github-workflows#251

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant