2024-01-17 14:03:09 +03:00
|
|
|
display-name: swift
|
|
|
|
|
|
|
|
warnings:
|
|
|
|
- vendored
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: apple/swift
|
|
|
|
strip:
|
|
|
|
- /^swift-/
|
|
|
|
- /-RELEASE$/
|
|
|
|
|
|
|
|
platforms:
|
|
|
|
- darwin/aarch64
|
|
|
|
# It is ready to run on linux. It going to work with ubuntu 22.04,
|
|
|
|
# and not with debian-buster and tests going to fail
|
|
|
|
# - linux/x86-64
|
|
|
|
# - linux/aarch64
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
linux:
|
|
|
|
gnu.org/gcc: '*'
|
|
|
|
gnu.org/binutils: '*'
|
|
|
|
gnupg.org: ^2
|
|
|
|
gnome.org/libxml2: '*'
|
|
|
|
libgit2.org: '*'
|
|
|
|
curl.se: '*'
|
|
|
|
sqlite.org: ^3
|
|
|
|
|
|
|
|
runtime:
|
|
|
|
env:
|
|
|
|
TOOLCHAINS: ${{prefix}}/usr/bin/swift
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
curl.se: '*'
|
|
|
|
script:
|
|
|
|
- mkdir -p {{prefix}}/bin
|
|
|
|
- run: |
|
|
|
|
curl -SfL "$DOWNLOAD_URL" | tar xzf - --strip-components=2
|
|
|
|
tar xzf Payload -C {{prefix}}
|
|
|
|
rm -rf {{prefix}}/_CodeSignature
|
|
|
|
rm -rf {{prefix}}/Info.plist
|
|
|
|
if: darwin
|
|
|
|
- run: ln -sh ../usr/bin/* {{prefix}}/bin
|
|
|
|
working-directory: ${{prefix}}/bin
|
|
|
|
if: darwin
|
|
|
|
- run: |
|
|
|
|
curl -SfL "$DOWNLOAD_URL" | tar xzf - -C {{ prefix }} --strip-components=2
|
|
|
|
if: linux
|
|
|
|
env:
|
2024-01-22 20:16:55 +03:00
|
|
|
darwin/aarch64:
|
|
|
|
DOWNLOAD_URL: 'https://download.swift.org/swift-{{version}}-release/xcode/swift-{{version}}-RELEASE/swift-{{version}}-RELEASE-osx.pkg'
|
|
|
|
linux/aarch64:
|
|
|
|
DOWNLOAD_URL: 'https://download.swift.org/swift-{{version}}-release/ubuntu2204-aarch64/swift-{{version}}-RELEASE/swift-{{version}}-RELEASE-ubuntu22.04-aarch64.tar.gz'
|
|
|
|
linux/x86-64:
|
|
|
|
DOWNLOAD_URL: 'https://download.swift.org/swift-{{version}}-release/ubuntu2204/swift-{{version}}-RELEASE/swift-{{version}}-RELEASE-ubuntu22.04.tar.gz'
|
2024-01-17 14:03:09 +03:00
|
|
|
|
2024-01-22 20:16:55 +03:00
|
|
|
# We don't want to smash the llvm dependencies everywhere; this is a secondary provide
|
2024-01-17 14:03:09 +03:00
|
|
|
provides:
|
|
|
|
darwin:
|
2024-01-22 20:16:55 +03:00
|
|
|
# - bin/clang-13
|
|
|
|
# - bin/clangd
|
2024-01-17 14:03:09 +03:00
|
|
|
- bin/docc
|
|
|
|
- bin/dsymutil
|
2024-01-22 20:16:55 +03:00
|
|
|
# - bin/llvm-ar
|
|
|
|
# - bin/llvm-cov
|
|
|
|
# - bin/llvm-profdata
|
2024-01-17 14:03:09 +03:00
|
|
|
- bin/sourcekit-lsp
|
|
|
|
- bin/swift-api-checker.py
|
|
|
|
- bin/swift-build-sdk-interfaces
|
|
|
|
- bin/swift-build-tool
|
|
|
|
- bin/swift-demangle
|
|
|
|
- bin/swift-driver
|
|
|
|
- bin/swift-format
|
|
|
|
- bin/swift-frontend
|
|
|
|
- bin/swift-help
|
|
|
|
- bin/swift-package
|
|
|
|
- bin/swift-plugin-server
|
|
|
|
- bin/swift-stdlib-tool
|
2024-01-22 20:16:55 +03:00
|
|
|
# - bin/clang
|
|
|
|
# - bin/clang-cache
|
|
|
|
# - bin/clang-cl
|
|
|
|
# - bin/clang-cpp
|
|
|
|
# - bin/clang++
|
2024-01-17 14:03:09 +03:00
|
|
|
- bin/swift
|
|
|
|
- bin/swift-api-digester
|
|
|
|
- bin/swift-api-extract
|
|
|
|
- bin/swift-autolink-extract
|
|
|
|
- bin/swift-build
|
|
|
|
- bin/swift-experimental-sdk
|
|
|
|
- bin/swift-package-collection
|
|
|
|
- bin/swift-package-registry
|
|
|
|
- bin/swift-run
|
|
|
|
- bin/swift-symbolgraph-extract
|
|
|
|
- bin/swift-test
|
|
|
|
- bin/swiftc
|
|
|
|
linux:
|
2024-01-22 20:16:55 +03:00
|
|
|
# - bin/clang-13
|
|
|
|
# - bin/clangd
|
2024-01-17 14:03:09 +03:00
|
|
|
- bin/docc
|
2024-01-22 20:16:55 +03:00
|
|
|
# - bin/lld
|
|
|
|
# - bin/lldb
|
|
|
|
# - bin/lldb-argdumper
|
|
|
|
# - bin/lldb-server
|
|
|
|
# - bin/llvm-ar
|
|
|
|
# - bin/llvm-cov
|
|
|
|
# - bin/llvm-profdata
|
2024-01-17 14:03:09 +03:00
|
|
|
- bin/plutil
|
|
|
|
- bin/repl_swift
|
|
|
|
- bin/sourcekit-lsp
|
|
|
|
- bin/swift-api-checker.py
|
|
|
|
- bin/swift-build-sdk-interfaces
|
|
|
|
- bin/swift-build-tool
|
|
|
|
- bin/swift-demangle
|
|
|
|
- bin/swift-driver
|
|
|
|
- bin/swift-frontend
|
|
|
|
- bin/swift-help
|
|
|
|
- bin/swift-package
|
|
|
|
- bin/swift-plugin-server
|
2024-01-22 20:16:55 +03:00
|
|
|
# - bin/clang
|
|
|
|
# - bin/clang-cache
|
|
|
|
# - bin/clang-cl
|
|
|
|
# - bin/clang-cpp
|
|
|
|
# - bin/clang++
|
|
|
|
# - bin/ld.lld
|
|
|
|
# - bin/ld64.lld
|
|
|
|
# - bin/lld-link
|
2024-01-17 14:03:09 +03:00
|
|
|
- bin/swift
|
|
|
|
- bin/swift-api-digester
|
|
|
|
- bin/swift-api-extract
|
|
|
|
- bin/swift-autolink-extract
|
|
|
|
- bin/swift-build
|
|
|
|
- bin/swift-experimental-sdk
|
|
|
|
- bin/swift-package-collection
|
|
|
|
- bin/swift-package-registry
|
|
|
|
- bin/swift-run
|
|
|
|
- bin/swift-symbolgraph-extract
|
|
|
|
- bin/swift-test
|
|
|
|
- bin/swiftc
|
|
|
|
test: |
|
|
|
|
swift --version
|