Skip to content

Commit 47b967b

Browse files
committed
Update page
1 parent 2cff5b4 commit 47b967b

File tree

3 files changed

+36
-4
lines changed

3 files changed

+36
-4
lines changed

_data/android.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29384,6 +29384,15 @@
2938429384
"stars": 0,
2938529385
"status": "success"
2938629386
},
29387+
{
29388+
"created": "2025-01-09T14:40:07Z",
29389+
"duration": 4,
29390+
"modified": "2025-01-09T14:40:07Z",
29391+
"repo": "https://github.com/Formkunft/LightTableParser.git",
29392+
"runid": 12691756048,
29393+
"stars": 0,
29394+
"status": "success"
29395+
},
2938729396
{
2938829397
"created": "2025-01-07T12:16:24Z",
2938929398
"duration": 9,

index.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
layout: default
33
title: Swift Everywhere: Android Build Status
44
---
5+
56
<h1>{{ page.title }}</h1>
67

7-
{% assign items = site.data.android %}
88

99
<p>
1010
This page acts as a supplement to the
@@ -15,6 +15,15 @@ yet supported, such as
1515
<a href="">Windows</a>.
1616
<p>
1717

18+
## Android Build Status
19+
20+
{% assign items = site.data.android %}
21+
{% assign stats = site.data.android_stats %}
22+
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.
1827

1928
<table>
2029
<tr>
@@ -39,5 +48,5 @@ yet supported, such as
3948
<p>
4049
This page is automatically updated by a GitHub action running at
4150
<a href="https://github.com/swift-everywhere/swift-package-builds">https://github.com/swift-everywhere/swift-package-builds</a>.
42-
It was last generated at {%- page.date | date: date_format -%}.
51+
It was last generated at {%- site.time | date_to_string -%}.
4352
</p>

scripts/updatebuilds.sh

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
1-
#!/bin/sh -ex
1+
#!/bin/bash -e
22

33
cd ../swift-package-builds
44
git pull
55
cd -
66

7-
cat ../swift-package-builds/index/android.json | jq 'to_entries | map(.value) | sort_by(.stars) | reverse' > _data/android.json
7+
INDEX="../swift-package-builds/index/android.json"
8+
STATS="../swift-package-builds/index/android_stats.json"
89

10+
cat ${INDEX} | jq 'to_entries | map(.value) | sort_by(.stars) | reverse' > _data/android.json
11+
12+
echo "{}" > ${STATS}
13+
14+
COUNT=$(cat ${INDEX} | jq 'length')
15+
jq --arg COUNT "$COUNT" '."total_packages" = $COUNT' $STATS > $STATS.new && mv $STATS.new $STATS
16+
17+
18+
SUCCESS=$(cat ${INDEX} | jq '[.[] | select(.status == "success")] | length')
19+
jq --arg SUCCESS "$SUCCESS" '."success_packages" = $SUCCESS' $STATS > $STATS.new && mv $STATS.new $STATS
20+
21+
22+
cat "${STATS}"

0 commit comments

Comments
 (0)