forked from libbpf/blazesym
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It can come in handy to have blazecli readily build for more targets, especially for Android, where it can be especially painful to get a working build from scratch. This change adjusts the build workflow to use a proper cross compilation setup that makes it easy for us to accomplish the same. With that in hand, it adds builds for a few Android targets. Signed-off-by: Daniel Müller <[email protected]>
- Loading branch information
Showing
3 changed files
with
20 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
|
||
jobs: | ||
build: | ||
name: Build statically linked binary | ||
name: Build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
target: [ | ||
aarch64-linux-android, | ||
arm-linux-androideabi, | ||
armv7-linux-androideabi, | ||
x86_64-unknown-linux-musl, | ||
] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: sudo apt-get install musl-tools | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: taiki-e/setup-cross-toolchain-action@v1 | ||
with: | ||
toolchain: stable | ||
profile: minimal | ||
override: true | ||
target: x86_64-unknown-linux-musl | ||
target: ${{ matrix.target }} | ||
- run: | | ||
cargo install --path=cli --root=. --target x86_64-unknown-linux-musl | ||
strip bin/blazecli | ||
cargo install --path=cli --root=. --target ${{ matrix.target }} | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: blazecli | ||
name: blazecli-${{ matrix.target }} | ||
path: bin/blazecli |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_call: | ||
|
||
env: | ||
|
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