-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (29 loc) · 890 Bytes
/
ci.yml
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
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Install apt dependency
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev
# Need to use nightly toolchain for eBPF
- uses: dtolnay/rust-toolchain@nightly
with:
components: rust-src
- name: Install bpf-linker
run: |
cargo install bpf-linker
- name: Build
run: cargo build --release
- uses: actions/upload-artifact@v4
with:
name: 'container-hotplug'
path: target/release/container-hotplug
- uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
files: target/release/container-hotplug