-
-
Notifications
You must be signed in to change notification settings - Fork 22
49 lines (42 loc) · 1.38 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
name: Release
on:
push:
tags:
- "*"
jobs:
build:
permissions:
contents: write
continue-on-error: false
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: cargo-bins/cargo-binstall@main
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: clippy rustfmt
- name: Install the dependencies
run: |
sudo apt update
sudo apt install -y podman binutils-aarch64-linux-gnu musl-tools
cargo binstall -y cross
cargo binstall -y bpf-linker
- name: Build oryx-ebpf
run: cargo xtask build-ebpf --release
- name: Build for arm64 musl
run: |
CROSS_CONTAINER_ENGINE=podman cross build --target aarch64-unknown-linux-musl --release
cp target/aarch64-unknown-linux-musl/release/oryx oryx-aarch64-unknown-linux-musl
- name: Build for x86_64 musl
run: |
CROSS_CONTAINER_ENGINE=podman cross build --target x86_64-unknown-linux-musl --release
cp target/x86_64-unknown-linux-musl/release/oryx oryx-x86_64-unknown-linux-musl
- name: Upload Binary
uses: softprops/action-gh-release@v2
with:
files: "oryx*"
body: |
[Release.md](${{ github.server_url }}/${{ github.repository }}/blob/main/Release.md)