Skip to content

Commit 0ac0375

Browse files
committed
Update page
1 parent 442d513 commit 0ac0375

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

_data/android_stats.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"total_packages": "3321",
3+
"success_packages": "1926"
4+
}

index.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,28 @@ title: Swift Everywhere: Android Build Status
55

66
<h1>{{ page.title }}</h1>
77

8-
8+
<div>
99
<p>
10+
<small>
1011
This page acts as a supplement to the
1112
<a href="https://swiftpackageindex.com">Swift Package Index</a>
1213
by providing build status for alternative platforms that are not
1314
yet supported, such as
1415
<a href="">Android</a> and
1516
<a href="">Windows</a>.
17+
</small>
1618
<p>
19+
</div>
1720

18-
## Android Build Status
21+
<h2>Android Build Status</h2>
1922

2023
{% assign items = site.data.android %}
2124
{% assign stats = site.data.android_stats %}
2225

23-
Of the {{ stats.total_packages | number_with_delimiter }} packages that are being successfully build
24-
for <a href="https://swiftpackageindex.com/search?query=platform:linux">Linux</a>,
25-
{{ stats.success_packages | number_with_delimiter }} are build successfully
26-
built for Android.
26+
Of the <b>{{ stats.total_packages | number_with_delimiter }}</b> packages that are being successfully built for
27+
<a href="https://swiftpackageindex.com/search?query=platform:linux">Linux</a>,
28+
<b>{{ stats.success_packages | number_with_delimiter }}</b>
29+
are successfully building for Android.
2730

2831
<table>
2932
<tr>
@@ -46,7 +49,9 @@ built for Android.
4649
</table>
4750

4851
<p>
52+
<small>
4953
This page is automatically updated by a GitHub action running at
5054
<a href="https://github.com/swift-everywhere/swift-package-builds">https://github.com/swift-everywhere/swift-package-builds</a>.
5155
It was last generated at {{ site.time | date_to_string }}.
56+
</small>
5257
</p>

scripts/updatebuilds.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
#!/bin/bash -e
2+
SCRIPT=$(realpath $0)
3+
cd $(dirname ${SCRIPT})/..
24

35
cd ../swift-package-builds
46
git pull
57
cd -
68

79
INDEX="../swift-package-builds/index/android.json"
8-
STATS="../swift-package-builds/index/android_stats.json"
10+
#STATS="../swift-package-builds/index/android_stats.json"
11+
STATS="_data/android_stats.json"
912

1013
cat ${INDEX} | jq 'to_entries | map(.value) | sort_by(.stars) | reverse' > _data/android.json
1114

0 commit comments

Comments
 (0)