Skip to content

Commit c8e8088

Browse files
committed
add deploy to github pages
1 parent 10bf69b commit c8e8088

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,9 @@ jobs:
245245
cat > commands.sh << EOF
246246
mv -f /data/local/tmp/sqlite3 /system/xbin
247247
cd /data/local/tmp
248+
sqlite3 ":memory:" -cmd ".bail on" ".load ./dist/cloudsync" "SELECT cloudsync_version();"
248249
$(make test CC=$CC PLATFORM=$PLATFORM -n)
249250
EOF
250-
find . -type f -exec du -h {} + | sort -h
251251
echo "::endgroup::"
252252
253253
- name: android test sqlite-sync
@@ -259,7 +259,6 @@ jobs:
259259
script: |
260260
adb root
261261
adb remount
262-
adb shell mount | grep system
263262
adb push ${{ github.workspace }}/. /data/local/tmp/
264263
adb shell "sh /data/local/tmp/commands.sh"
265264
@@ -272,6 +271,14 @@ jobs:
272271
if: matrix.name == 'macos'
273272
run: brew install lcov && make test COVERAGE=true
274273

274+
- name: deploy coverage HTML to GitHub Pages
275+
if: matrix.name == 'macos'
276+
uses: peaceiris/actions-gh-pages@v4
277+
with:
278+
github_token: ${{ secrets.GITHUB_TOKEN }}
279+
publish_dir: ./coverage
280+
force_orphan: true
281+
275282
- uses: actions/[email protected]
276283
if: always()
277284
with:

0 commit comments

Comments
 (0)