Skip to content

Commit 649dc94

Browse files
authored
ci: release x86_64 binary (#27)
Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
1 parent b75f862 commit 649dc94

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,19 @@ jobs:
1414
- uses: actions/checkout@v4
1515

1616
- name: Install toolchain
17-
run: rustup toolchain install nightly --component rust-src && cargo install bpf-linker
17+
run: |
18+
rustup toolchain install nightly --component rust-src
19+
rustup target add x86_64-unknown-linux-gnu
20+
cargo install bpf-linker --target x86_64-unknown-linux-gnu
1821
1922
- name: Build
20-
run: make
23+
run: |
24+
AYA_BUILD_EBPF=true cargo build --release --target x86_64-unknown-linux-gnu
25+
cp target/x86_64-unknown-linux-gnu/release/rust-memleak target/rust-memleak-x86_64
2126
22-
- name: Release
2327
uses: softprops/action-gh-release@v1
2428
with:
25-
files: "target/release/rust-memleak"
29+
files: "target/rust-memleak-x86_64"
2630
env:
2731
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2832

0 commit comments

Comments
 (0)