diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..d53d0bd --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,21 @@ +name: Swift + +on: [push] + +jobs: + build: + name: Swift ${{ matrix.swift }} on ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest] + swift: ["5.4", "5.5", "5.6", "5.7", "5.8"] + runs-on: ${{ matrix.os }} + steps: + - uses: swift-actions/setup-swift@65540b95f51493d65f5e59e97dcef9629ddf11bf + with: + swift-version: ${{ matrix.swift }} + - uses: actions/checkout@v3 + - name: Build + run: swift build + - name: Run tests + run: swift test diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7b2b431 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: Swift + +on: [push] + +jobs: + build: + name: Swift ${{ matrix.swift }} on ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest] + swift: ["5.3", "5.4", "5.5", "5.6", "5.7", "5.8"] + runs-on: ${{ matrix.os }} + steps: + - uses: swift-actions/setup-swift@65540b95f51493d65f5e59e97dcef9629ddf11bf + with: + swift-version: ${{ matrix.swift }} + - uses: actions/checkout@v3 + - name: Build + run: swift build + - name: Run tests + run: swift test diff --git a/Package.swift b/Package.swift index 04d1e5f..9a64495 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.3 +// swift-tools-version:5.4 import PackageDescription let package = Package( diff --git a/README.md b/README.md index 74203b1..486abfa 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # Emoji-Swift -[![TravisCI](http://img.shields.io/travis/safx/Emoji-Swift.svg?style=flat)](https://travis-ci.org/safx/Emoji-Swift) [![codecov.io](http://codecov.io/github/safx/emoji-swift/coverage.svg?branch=master)](http://codecov.io/github/safx/emoji-swift?branch=master) ![Platform](https://img.shields.io/cocoapods/p/Emoji-swift.svg?style=flat) ![License](https://img.shields.io/cocoapods/l/Emoji-swift.svg?style=flat) @@ -37,24 +36,3 @@ extension String { ```ruby pod 'Emoji-swift' ``` - -### Swift Package Manager - -Create a Package.swift file: - -```swift -import PackageDescription - -let package = Package( - name: "Emoji", - dependencies: [ - .Package(url: "https://github.com/safx/Emoji-Swift.git", majorVersion: 0) - ] -) -``` - -And then, type `swift build`. - -### Manual Install - -Just copy `Emoji.swift` and `String+Emoji.swift` into your project.