Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use makefile to manage build dependency #12

Merged
merged 2 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
# (or a compiler that supports C++17).
# - { distro: ubuntu, release: trusty } # LTS until Apr 2024
# - { distro: ubuntu, release: xenial } # LTS until Apr 2026
- { distro: ubuntu, release: bionic } # LTS until Apr 2028
# - { distro: ubuntu, release: bionic } # LTS until Apr 2028
- { distro: ubuntu, release: focal } # LTS until Apr 2030
- { distro: ubuntu, release: jammy } # LTS until Apr 2032
- { distro: ubuntu, release: lunar } # Current release
Expand Down
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

default: pull-request-ci

pipeline-build-amd64:
cargo build --release \
&& ./package.sh amd64/rezolus.tar.gz target/release/rezolus \
install-bpftool-arm:
curl -fSL "https://github.com/libbpf/bpftool/releases/download/v7.2.0/bpftool-v7.2.0-arm64.tar.gz" -o bpftool.tar.gz \
&& tar --extract --file bpftool.tar.gz --directory /usr/local/bin \
&& chmod +x /usr/local/bin/bpftool \
&& source ~/.bashrc

pipeline-build-arm64v8:
pipeline-build-arm64v8: install-bpftool-arm
cargo build --release \
&& ./package.sh arm64v8/rezolus.tar.gz target/release/rezolus \

Expand Down
Loading