Skip to content

Commit

Permalink
Show version in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lebauce committed Apr 2, 2024
1 parent 0faf654 commit 115c27b
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/go.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/skydive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Go

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

sources:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
cache-dependency-path: go.sum

install-dependencies:
runs-on: ubuntu-latest
needs: sources
steps:
- name: Install pcap
run: sudo apt-get install -y libpcap0.8-dev

build:
runs-on: ubuntu-latest
needs: install-dependencies
steps:
- name: Build graffiti
run: cd graffiti && go build -v

- name: Build
run: go build -v

run:
runs-on: ubuntu-latest
needs: build
steps:
- name: Show version
run: ./skydive version

0 comments on commit 115c27b

Please sign in to comment.