feat: add attach-zygote subcommand and refactor CLI to subcommand pat… #68
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 | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [master, workflow] | |
| pull_request: | |
| branches: [master, workflow] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| ONDK_VERSION: "r29.5" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| profile: [debug, release] | |
| zygisk: [zygisk, no-zygisk] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup just | |
| uses: extractions/setup-just@v4 | |
| - name: Setup Protoc | |
| run: sudo apt-get install -y protobuf-compiler | |
| - name: Setup Android SDK | |
| uses: android-actions/setup-android@v4 | |
| - name: Setup Rust (nightly for eBPF) | |
| run: rustup toolchain install nightly --component rust-src | |
| - name: Setup ONDK | |
| run: python3 scripts/setup-ondk.py --version $ONDK_VERSION | |
| - name: Install bpf-linker | |
| run: cargo install bpf-linker | |
| - name: Build | |
| run: just build-${{ matrix.profile }} ${{ matrix.zygisk }} | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: zynx-${{ matrix.profile }}-${{ matrix.zygisk }} | |
| path: | | |
| target/aarch64-linux-android/${{ matrix.profile }}/zynx | |
| target/aarch64-linux-android/${{ matrix.profile }}/zynx.dwp |