Skip to content

Commit

Permalink
Merge pull request #81 from tayloraswift/update-ci
Browse files Browse the repository at this point in the history
update CI to 6.0.2 and use separate device workflows
  • Loading branch information
tayloraswift authored Nov 15, 2024
2 parents 39e1388 + 9f6bb90 commit a475d16
Show file tree
Hide file tree
Showing 9 changed files with 112 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
- name: Install Swift
uses: tayloraswift/swift-install-action@master
with:
swift-prefix: "swift-6.0.1-release/ubuntu2404/swift-6.0.1-RELEASE"
swift-id: "swift-6.0.1-RELEASE-ubuntu24.04"
swift-prefix: "swift-6.0.2-release/ubuntu2404/swift-6.0.2-RELEASE"
swift-id: "swift-6.0.2-RELEASE-ubuntu24.04"

- name: Install Unidoc
uses: tayloraswift/swift-unidoc-action@master
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
linux:
runs-on: ubuntu-24.04
name: Ubuntu 24.04
steps:
- name: Install Swift
uses: tayloraswift/swift-install-action@master
with:
swift-prefix: "swift-6.0.2-release/ubuntu2404/swift-6.0.2-RELEASE"
swift-id: "swift-6.0.2-RELEASE-ubuntu24.04"

- name: Checkout repository
uses: actions/checkout@v3

- name: Run tests
run: Scripts/TestAll

macos:
runs-on: macos-15
name: macOS
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Run tests
run: Scripts/TestAll
14 changes: 14 additions & 0 deletions .github/workflows/iOS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: iOS

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
uses: tayloraswift/swift-device-action/.github/workflows/build.yml@master
with:
xcode-scheme: 'swift-json-Package'
destination: ${{ github.workflow }}
56 changes: 0 additions & 56 deletions .github/workflows/test.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/tvOS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: tvOS

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
uses: tayloraswift/swift-device-action/.github/workflows/build.yml@master
with:
xcode-scheme: 'swift-json-Package'
destination: ${{ github.workflow }}
14 changes: 14 additions & 0 deletions .github/workflows/visionOS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: visionOS

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
uses: tayloraswift/swift-device-action/.github/workflows/build.yml@master
with:
xcode-scheme: 'swift-json-Package'
destination: ${{ github.workflow }}
14 changes: 14 additions & 0 deletions .github/workflows/watchOS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: watchOS

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
uses: tayloraswift/swift-device-action/.github/workflows/build.yml@master
with:
xcode-scheme: 'swift-json-Package'
destination: ${{ github.workflow }}
26 changes: 20 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
<div align="center">

***`json`***<br>`1.0`
***`json`***

[![ci status](https://github.com/tayloraswift/swift-json/actions/workflows/test.yml/badge.svg)](https://github.com/tayloraswift/swift-json/actions/workflows/test.yml)
[![ci status](https://github.com/tayloraswift/swift-json/actions/workflows/docs.yml/badge.svg)](https://github.com/tayloraswift/swift-json/actions/workflows/docs.yml)

[![swift package index versions](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Ftayloraswift%2Fswift-json%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/tayloraswift/swift-json)
[![swift package index platforms](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Ftayloraswift%2Fswift-json%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/tayloraswift/swift-json)
[![Tests](https://github.com/tayloraswift/swift-json/actions/workflows/Tests.yml/badge.svg)](https://github.com/tayloraswift/swift-json/actions/workflows/Tests.yml)
[![Documentation](https://github.com/tayloraswift/swift-json/actions/workflows/Documentation.yml/badge.svg)](https://github.com/tayloraswift/swift-json/actions/workflows/Documentation.yml)

</div>

Expand All @@ -19,3 +16,20 @@ A pure Swift JSON parsing and encoding library designed for high-performance, hi

</div>


## Requirements

The swift-json library requires Swift 5.10 or later.


| Platform | Status |
| -------- | ------ |
| 🐧 Linux | [![Tests](https://github.com/tayloraswift/swift-json/actions/workflows/Tests.yml/badge.svg)](https://github.com/tayloraswift/swift-json/actions/workflows/Tests.yml) |
| 🍏 Darwin | [![Tests](https://github.com/tayloraswift/swift-json/actions/workflows/Tests.yml/badge.svg)](https://github.com/tayloraswift/swift-json/actions/workflows/Tests.yml) |
| 🍏 Darwin (iOS) | [![iOS](https://github.com/tayloraswift/swift-json/actions/workflows/iOS.yml/badge.svg)](https://github.com/tayloraswift/swift-json/actions/workflows/iOS.yml) |
| 🍏 Darwin (tvOS) | [![tvOS](https://github.com/tayloraswift/swift-json/actions/workflows/tvOS.yml/badge.svg)](https://github.com/tayloraswift/swift-json/actions/workflows/tvOS.yml) |
| 🍏 Darwin (visionOS) | [![visionOS](https://github.com/tayloraswift/swift-json/actions/workflows/visionOS.yml/badge.svg)](https://github.com/tayloraswift/swift-json/actions/workflows/visionOS.yml) |
| 🍏 Darwin (watchOS) | [![watchOS](https://github.com/tayloraswift/swift-json/actions/workflows/watchOS.yml/badge.svg)](https://github.com/tayloraswift/swift-json/actions/workflows/watchOS.yml) |


[Check deployment minimums](https://swiftinit.org/docs/swift-json#ss:platform-requirements)
File renamed without changes.

0 comments on commit a475d16

Please sign in to comment.