Skip to content

Commit 2423180

Browse files
committed
Show version in github actions
1 parent 0faf654 commit 2423180

File tree

2 files changed

+45
-29
lines changed

2 files changed

+45
-29
lines changed

.github/workflows/go.yml

-29
This file was deleted.

.github/workflows/skydive.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
11+
sources:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v4
18+
with:
19+
go-version: '1.21'
20+
cache-dependency-path: go.sum
21+
22+
install-dependencies:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Install pcap
26+
run: sudo apt-get install -y libpcap0.8-dev
27+
28+
build:
29+
runs-on: ubuntu-latest
30+
needs:
31+
- sources
32+
- install-dependencies
33+
steps:
34+
- name: Build graffiti
35+
run: cd graffiti && go build -v
36+
37+
- name: Build
38+
run: go build -v
39+
40+
run:
41+
runs-on: ubuntu-latest
42+
needs: build
43+
steps:
44+
- name: Show version
45+
run: ./skydive version

0 commit comments

Comments
 (0)