Skip to content

Commit

Permalink
ci: add release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaobo Liu <[email protected]>
  • Loading branch information
cppcoffee committed Nov 30, 2024
1 parent 160531d commit 28c417a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
release:
name: Build and Release
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install toolchain
run: |
rustup toolchain install nightly --component rust-src
rustup target add x86_64-unknown-linux-gnu
cargo install bpf-linker --target x86_64-unknown-linux-gnu
- name: Build
run: |
AYA_BUILD_EBPF=true cargo build --release --target x86_64-unknown-linux-gnu
cp target/x86_64-unknown-linux-gnu/release/c-memleak target/c-memleak-x86_64
- name: Release
uses: softprops/action-gh-release@v1
with:
files: "target/c-memleak-x86_64"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

permissions:
contents: write

0 comments on commit 28c417a

Please sign in to comment.