Merge pull request #86 from iliaoke/main #138
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build CI | |
| on: | |
| push: | |
| pull_request: | |
| workflow_call: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y lld clang llvm uuid-dev liblzma-dev mingw-w64 zip | |
| - name: Setup Variables | |
| run: | | |
| echo "NDK_PATH=$ANDROID_NDK_LATEST_HOME" >> $GITHUB_ENV | |
| - name: Build Toolkits | |
| run: | | |
| make target_toolkit_linux | |
| make target_toolkit_windows | |
| make target_toolkit_android | |
| - name: Build Magisk Module | |
| run: | | |
| make target_magisk_module | |
| - name: Build VBMeta Fixer | |
| run: | | |
| make tools_vbmetafixer_linux | |
| make tools_vbmetafixer_windows | |
| make tools_vbmetafixer_android | |
| - name: Unpack artifacts | |
| run: | | |
| mkdir -p artifacts/toolkit_linux artifacts/toolkit_windows artifacts/toolkit_android artifacts/magisk_module | |
| mkdir -p artifacts/vbmetafixer_linux artifacts/vbmetafixer_windows artifacts/vbmetafixer_android | |
| unzip targets/toolkit_linux/build/toolkit_linux.zip -d artifacts/toolkit_linux | |
| unzip targets/toolkit_windows/build/toolkit_windows.zip -d artifacts/toolkit_windows | |
| unzip targets/toolkit_android/build/toolkit_android.zip -d artifacts/toolkit_android | |
| unzip targets/magisk_module/build/module_android.zip -d artifacts/magisk_module | |
| cp -r tools/vbmetafixer/build/toolkit/* artifacts/vbmetafixer_linux/ | |
| cp -r tools/vbmetafixer/build/toolkit_win/* artifacts/vbmetafixer_windows/ | |
| cp -r tools/vbmetafixer/build/toolkit_android/* artifacts/vbmetafixer_android/ | |
| - name: Upload Linux Toolkit | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: toolkit_linux | |
| path: artifacts/toolkit_linux/* | |
| - name: Upload Windows Toolkit | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: toolkit_windows | |
| path: artifacts/toolkit_windows/* | |
| - name: Upload Android Toolkit | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: toolkit_android | |
| path: artifacts/toolkit_android/* | |
| - name: Upload Magisk Module | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: magisk_module | |
| path: artifacts/magisk_module/* | |
| - name: Upload VBMeta Fixer Linux | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: vbmetafixer_linux | |
| path: artifacts/vbmetafixer_linux/* | |
| - name: Upload VBMeta Fixer Windows | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: vbmetafixer_windows | |
| path: artifacts/vbmetafixer_windows/* | |
| - name: Upload VBMeta Fixer Android | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: vbmetafixer_android | |
| path: artifacts/vbmetafixer_android/* |