Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 31 additions & 29 deletions projects/swift.org/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,17 @@ versions:

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
- linux/x86-64

dependencies:
linux:
gnu.org/gcc: '*'
gnu.org/binutils: '*'
gnupg.org: ^2
gnome.org/libxml2: '*'
libgit2.org: '*'
curl.se: '*'
sqlite.org: ^3
invisible-island.net/ncurses: ^6

runtime:
env:
Expand All @@ -39,7 +36,7 @@ build:
curl -SfL "$DOWNLOAD_URL" | tar xzf - --strip-components=2
tar xzf Payload -C {{prefix}}
rm -rf {{prefix}}/_CodeSignature
rm -rf {{prefix}}/Info.plist
rm {{prefix}}/Info.plist
if: darwin
- run: ln -sh ../usr/bin/* {{prefix}}/bin
working-directory: ${{prefix}}/bin
Expand All @@ -49,30 +46,23 @@ build:
if: linux
env:
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" }
linux/x86-64: { DOWNLOAD_URL: "https://download.swift.org/swift-{{version}}-release/ubuntu1804/swift-{{version}}-RELEASE/swift-{{version}}-RELEASE-ubuntu18.04.tar.gz" }

provides:
darwin:
- bin/clang-13
- bin/clangd
- bin/docc
- bin/dsymutil
- bin/llvm-ar
- bin/llvm-cov
- bin/llvm-profdata
- 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
- bin/clang
- bin/clang-cache
- bin/clang-cl
Expand All @@ -90,23 +80,22 @@ provides:
- bin/swift-symbolgraph-extract
- bin/swift-test
- bin/swiftc
# follows unique programs for darwin
- bin/dsymutil
- bin/swift-format
- bin/swift-api-checker.py
- bin/swift-build-sdk-interfaces
- bin/swift-build-tool
- bin/swift-package
- bin/swift-plugin-server
- bin/swift-stdlib-tool
linux:
- bin/clang-13
- bin/clangd
- bin/docc
- bin/lld
- bin/lldb
- bin/lldb-argdumper
- bin/lldb-server
- bin/llvm-ar
- bin/llvm-cov
- bin/llvm-profdata
- 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
Expand All @@ -118,9 +107,6 @@ provides:
- bin/clang-cl
- bin/clang-cpp
- bin/clang++
- bin/ld.lld
- bin/ld64.lld
- bin/lld-link
- bin/swift
- bin/swift-api-digester
- bin/swift-api-extract
Expand All @@ -133,5 +119,21 @@ provides:
- bin/swift-symbolgraph-extract
- bin/swift-test
- bin/swiftc
test: |
swift --version
# follows unique programs for linux
- bin/lld
- bin/lldb
- bin/lldb-argdumper
- bin/lldb-server
- bin/plutil
- bin/repl_swift
- bin/ld.lld
- bin/ld64.lld
- bin/lld-link

test:
- swift --version | grep {{version}}
- run:
swift $FIXTURE | grep "Hello, World!"
fixture:
content: print("Hello, World!")
extname: .swift