Skip to content

Commit 64ebbde

Browse files
authored
Merge pull request #12 from QiuZhiFei/dev
feat: add macOS(.V11) platforms declaration to PackageDescription
2 parents afa9d9f + 57a22de commit 64ebbde

File tree

5 files changed

+154
-8
lines changed

5 files changed

+154
-8
lines changed

.github/workflows/jazzy.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,28 @@ on:
88

99
jobs:
1010
Jazzy:
11-
runs-on: ubuntu-latest
12-
container:
13-
image: norionomura/jazzy:latest
11+
runs-on: macos-latest
1412
steps:
15-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1614
- name: ENV
1715
run: |
1816
uname -a
1917
swift --version
18+
- uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: 3.3
21+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
2022
- name: Build
2123
run: |
2224
swift build -v
2325
- name: Generate documentation json
2426
run: |
25-
sourcekitten doc --spm-module Commands > commands.json
27+
brew install sourcekitten
28+
sourcekitten doc --spm --module-name Commands > commands.json
2629
- name: Run jazzy
2730
run: |
28-
jazzy --clean --sourcekitten-sourcefile commands.json
29-
- uses: actions/upload-artifact@v2
31+
bundle exec jazzy --clean --sourcekitten-sourcefile commands.json
32+
- uses: actions/upload-artifact@v4
3033
with:
3134
name: API Docs
3235
path: docs

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://rubygems.org'
2+
3+
gem "jazzy"

Gemfile.lock

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (3.0.7)
5+
base64
6+
nkf
7+
rexml
8+
activesupport (7.1.5)
9+
base64
10+
benchmark (>= 0.3)
11+
bigdecimal
12+
concurrent-ruby (~> 1.0, >= 1.0.2)
13+
connection_pool (>= 2.2.5)
14+
drb
15+
i18n (>= 1.6, < 2)
16+
logger (>= 1.4.2)
17+
minitest (>= 5.1)
18+
mutex_m
19+
securerandom (>= 0.3)
20+
tzinfo (~> 2.0)
21+
addressable (2.8.7)
22+
public_suffix (>= 2.0.2, < 7.0)
23+
algoliasearch (1.27.5)
24+
httpclient (~> 2.8, >= 2.8.3)
25+
json (>= 1.5.1)
26+
atomos (0.1.3)
27+
base64 (0.2.0)
28+
benchmark (0.4.0)
29+
bigdecimal (3.1.8)
30+
claide (1.1.0)
31+
cocoapods (1.16.2)
32+
addressable (~> 2.8)
33+
claide (>= 1.0.2, < 2.0)
34+
cocoapods-core (= 1.16.2)
35+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
36+
cocoapods-downloader (>= 2.1, < 3.0)
37+
cocoapods-plugins (>= 1.0.0, < 2.0)
38+
cocoapods-search (>= 1.0.0, < 2.0)
39+
cocoapods-trunk (>= 1.6.0, < 2.0)
40+
cocoapods-try (>= 1.1.0, < 2.0)
41+
colored2 (~> 3.1)
42+
escape (~> 0.0.4)
43+
fourflusher (>= 2.3.0, < 3.0)
44+
gh_inspector (~> 1.0)
45+
molinillo (~> 0.8.0)
46+
nap (~> 1.0)
47+
ruby-macho (>= 2.3.0, < 3.0)
48+
xcodeproj (>= 1.27.0, < 2.0)
49+
cocoapods-core (1.16.2)
50+
activesupport (>= 5.0, < 8)
51+
addressable (~> 2.8)
52+
algoliasearch (~> 1.0)
53+
concurrent-ruby (~> 1.1)
54+
fuzzy_match (~> 2.0.4)
55+
nap (~> 1.0)
56+
netrc (~> 0.11)
57+
public_suffix (~> 4.0)
58+
typhoeus (~> 1.0)
59+
cocoapods-deintegrate (1.0.5)
60+
cocoapods-downloader (2.1)
61+
cocoapods-plugins (1.0.0)
62+
nap
63+
cocoapods-search (1.0.1)
64+
cocoapods-trunk (1.6.0)
65+
nap (>= 0.8, < 2.0)
66+
netrc (~> 0.11)
67+
cocoapods-try (1.2.0)
68+
colored2 (3.1.2)
69+
concurrent-ruby (1.3.4)
70+
connection_pool (2.4.1)
71+
drb (2.2.1)
72+
escape (0.0.4)
73+
ethon (0.16.0)
74+
ffi (>= 1.15.0)
75+
ffi (1.17.0-arm64-darwin)
76+
ffi (1.17.0-x86_64-darwin)
77+
fourflusher (2.3.1)
78+
fuzzy_match (2.0.4)
79+
gh_inspector (1.1.3)
80+
httpclient (2.8.3)
81+
i18n (1.14.6)
82+
concurrent-ruby (~> 1.0)
83+
jazzy (0.15.3)
84+
cocoapods (~> 1.5)
85+
mustache (~> 1.1)
86+
open4 (~> 1.3)
87+
redcarpet (~> 3.4)
88+
rexml (>= 3.2.7, < 4.0)
89+
rouge (>= 2.0.6, < 5.0)
90+
sassc (~> 2.1)
91+
sqlite3 (~> 1.3)
92+
xcinvoke (~> 0.3.0)
93+
json (2.9.0)
94+
liferaft (0.0.6)
95+
logger (1.6.2)
96+
minitest (5.25.4)
97+
molinillo (0.8.0)
98+
mustache (1.1.1)
99+
mutex_m (0.3.0)
100+
nanaimo (0.4.0)
101+
nap (1.1.0)
102+
netrc (0.11.0)
103+
nkf (0.2.0)
104+
open4 (1.3.4)
105+
public_suffix (4.0.7)
106+
redcarpet (3.6.0)
107+
rexml (3.3.9)
108+
rouge (4.5.1)
109+
ruby-macho (2.5.1)
110+
sassc (2.4.0)
111+
ffi (~> 1.9)
112+
securerandom (0.3.2)
113+
sqlite3 (1.7.3-arm64-darwin)
114+
sqlite3 (1.7.3-x86_64-darwin)
115+
typhoeus (1.4.1)
116+
ethon (>= 0.9.0)
117+
tzinfo (2.0.6)
118+
concurrent-ruby (~> 1.0)
119+
xcinvoke (0.3.0)
120+
liferaft (~> 0.0.6)
121+
xcodeproj (1.27.0)
122+
CFPropertyList (>= 2.3.3, < 4.0)
123+
atomos (~> 0.1.3)
124+
claide (>= 1.0.2, < 2.0)
125+
colored2 (~> 3.1)
126+
nanaimo (~> 0.4.0)
127+
rexml (>= 3.3.6, < 4.0)
128+
129+
PLATFORMS
130+
arm64-darwin
131+
x86_64-darwin
132+
133+
DEPENDENCIES
134+
jazzy
135+
136+
BUNDLED WITH
137+
2.5.23

Package.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import PackageDescription
55

66
let package = Package(
77
name: "swift-commands",
8+
platforms: [
9+
.macOS(.v11)
10+
],
811
products: [
912
.library(name: "Commands",
1013
targets: ["Commands"]),

README_cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ let package = Package(
128128
)
129129
```
130130

131-
## CocoaPods (OS X 10.9+)
131+
## CocoaPods (OS X 11.0+)
132132
You can use [CocoaPods](http://cocoapods.org/) to install `Commands` by adding it to your `Podfile`:
133133
```ruby
134134
pod 'Commands', '~> 0.6.0'

0 commit comments

Comments
 (0)