Skip to content

Commit ec2def5

Browse files
committed
android emu push libc
1 parent 6d6f376 commit ec2def5

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

.github/workflows/main.yml

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44

55
permissions:
66
contents: write
7+
pages: write
8+
id-token: write
79

810
jobs:
911
build:
@@ -260,6 +262,8 @@ jobs:
260262
adb root
261263
adb remount
262264
adb push ${{ github.workspace }}/. /data/local/tmp/
265+
adb push $ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/x86_64/libc++_shared.so /data/local/tmp/
266+
adb shell "ls -lah /data/local/tmp/"
263267
adb shell "sh /data/local/tmp/commands.sh"
264268
265269
- name: test sqlite-sync
@@ -271,6 +275,13 @@ jobs:
271275
if: matrix.name == 'macos'
272276
run: brew install lcov && make test COVERAGE=true
273277

278+
- uses: actions/[email protected]
279+
if: matrix.name == 'macos'
280+
with:
281+
name: coverage
282+
path: coverage
283+
if-no-files-found: error
284+
274285
- uses: actions/[email protected]
275286
if: always()
276287
with:
@@ -287,6 +298,10 @@ jobs:
287298
env:
288299
GH_TOKEN: ${{ github.token }}
289300

301+
environment:
302+
name: github-pages
303+
url: ${{ steps.deployment.outputs.page_url }}
304+
290305
steps:
291306

292307
- uses: actions/[email protected]
@@ -312,12 +327,23 @@ jobs:
312327
for folder in "artifacts"/*; do
313328
if [ -d "$folder" ]; then
314329
name=$(basename "$folder")
315-
zip -jq "${name}-${{ steps.tag.outputs.version }}.zip" "$folder"/*
316-
tar -cJf "${name}-${{ steps.tag.outputs.version }}.tar.xz" -C "$folder" .
317-
tar -czf "${name}-${{ steps.tag.outputs.version }}.tar.gz" -C "$folder" .
330+
if [[ "$name" != "coverage" ]]; then
331+
zip -jq "${name}-${{ steps.tag.outputs.version }}.zip" "$folder"/*
332+
tar -cJf "${name}-${{ steps.tag.outputs.version }}.tar.xz" -C "$folder" .
333+
tar -czf "${name}-${{ steps.tag.outputs.version }}.tar.gz" -C "$folder" .
334+
fi
318335
fi
319336
done
320337
338+
- name: setup GitHub Pages
339+
uses: actions/configure-pages@v5
340+
341+
- name: deploy coverage to GitHub Pages
342+
uses: actions/[email protected]
343+
id: deployment
344+
with:
345+
artifact_name: coverage
346+
321347
- uses: softprops/[email protected]
322348
with:
323349
generate_release_notes: true

0 commit comments

Comments
 (0)