mirror of
https://github.com/zhaarey/wrapper.git
synced 2025-08-05 15:53:51 +09:00
V2
This commit is contained in:
14
.github/workflows/c-cpp.yml
vendored
14
.github/workflows/c-cpp.yml
vendored
@ -23,19 +23,21 @@ jobs:
|
||||
- name: Set up Android NDK r23b
|
||||
run: |
|
||||
aria2c -o android-ndk-r23b-linux.zip https://dl.google.com/android/repository/android-ndk-r23b-linux.zip
|
||||
unzip -q android-ndk-r23b-linux.zip
|
||||
unzip -q -d ~ android-ndk-r23b-linux.zip
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
android-ndk-r23b/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android22-clang++ -Wall -Werror -nostdlib -c -O3 -o handle.o main.cpp
|
||||
android-ndk-r23b/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android22-clang -DMyRelease -Wall -Werror -L ./rootfs/system/lib64 -landroidappmusic -lstoreservicescore -lmediaplatform -lc++_shared -O3 -Wall -o rootfs/system/bin/main handle.o test.c
|
||||
clang -O3 -Wall -o wrapper wrapper.c
|
||||
make
|
||||
|
||||
- name: Set outputs
|
||||
id: vars
|
||||
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Wrapper.x86_64
|
||||
name: Wrapper.x86_64.${{ steps.vars.outputs.sha_short }}
|
||||
include-hidden-files: true
|
||||
path: |
|
||||
rootfs
|
||||
handle.o
|
||||
wrapper
|
||||
|
Reference in New Issue
Block a user