Skip to content

Commit 5d05a35

Browse files
committed
Add CI
1 parent 0dc36d3 commit 5d05a35

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Diff for: .github/workflows/ci.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-20.04
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Install dependency
13+
run: |
14+
sudo apt-get update
15+
sudo apt-get install -y libudev-dev
16+
17+
- name: Build
18+
run: cargo build --release
19+
20+
- uses: actions/upload-artifact@v4
21+
with:
22+
name: 'container-hotplug'
23+
path: target/release/container-hotplug
24+
25+
- uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
26+
if: startsWith(github.ref, 'refs/tags/')
27+
with:
28+
prerelease: true
29+
files: target/release/container-hotplug

0 commit comments

Comments
 (0)