examples/rust: Use CARGO_CFG_TARGET_ARCH
environment variable
#56
This file contains 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: libbpf-bootstrap android build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
schedule: | |
- cron: '7 17 * * *' | |
jobs: | |
build_libbpf_bootstrap_android: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
arch: [armeabi-v7a, arm64-v8a, x86_64] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- uses: xmake-io/github-action-setup-xmake@v1 | |
with: | |
xmake-version: 'latest' | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update -y && sudo apt-get install -yqq \ | |
build-essential clang llvm zlib1g-dev libc++-dev libc++abi-dev \ | |
sudo \ | |
&& sudo apt-get -y clean | |
- name: Build xmake android examples/c | |
run: | | |
cd examples/c && xmake f -p android -a ${{ matrix.arch }} --require-bpftool=y -y && xmake -y |