chore: setup GitHub workflow #1
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 | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup just | |
| uses: extractions/setup-just@v3 | |
| - name: Setup Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Setup Rust | |
| run: | | |
| rustup update stable | |
| rustup target add aarch64-linux-android | |
| rustup toolchain install nightly --component rust-src | |
| - name: Install bpf-linker | |
| run: cargo install bpf-linker | |
| - name: Build | |
| run: just build-release |