Skip to content

Commit

Permalink
actions: Use download-artifact@4
Browse files Browse the repository at this point in the history
  • Loading branch information
iscle committed Mar 13, 2024
1 parent fa0adbc commit 3145edc
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,11 @@ jobs:
cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake -DANDROID_ABI=${{ matrix.abi }} -DANDROID_PLATFORM=android-${{ env.MIN_SDK_VERSION }} -DANDROID_ARM_NEON=TRUE .
cmake --build . -- -j$(nproc)
- name: Rename output
run: |
mv libv4a_re.so libv4a_re_${{ matrix.abi }}.so
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: libv4a_re_${{ matrix.abi }}
path: libv4a_re_${{ matrix.abi }}.so
path: libv4a_re.so

package:
needs: build
Expand All @@ -41,22 +37,20 @@ jobs:
uses: actions/checkout@v4

# Download the compiled binaries from the 'build' workflow
- name: Download compiled libraries
uses: actions/download-artifact@v3
with:
name: compiled-binaries
path: compiled/
- name: Download artifacts
uses: actions/download-artifact@v4

# Prepare Magisk module directory by copying the necessary ABI files
- name: Prepare Magisk Module
run: |
for abi in armeabi-v7a arm64-v8a x86 x86_64; do
mkdir -p module/common/files
cp compiled/libv4a_re_$abi.so module/common/files/
ls .
cp libv4a_re_$abi/libv4a_re.so module/common/files/libv4a_re_$abi.so
done
# Zip the Magisk module
- name: Zip Magisk Module
- name: Package Magisk Module
run: |
cd module
zip -r ../magisk_module.zip ./
Expand Down

0 comments on commit 3145edc

Please sign in to comment.